def create_one(self, which, path, content):
     file = self.tmppath(os.path.join(which, path))
     ensure_parent_dir(file)
     open(file, 'wb').write(content)
Пример #2
0
 def add(self, path):
     ensure_parent_dir(self.tmppath(path))
     open(self.tmppath(path), 'wb').write(path)
Пример #3
0
 def add(self, path):
     ensure_parent_dir(self.tmppath(path))
     open(self.tmppath(path), 'wb').write(path)
Пример #4
0
 def create_one(self, which, path, content):
     file = self.tmppath(os.path.join(which, path))
     ensure_parent_dir(file)
     open(file, 'wb').write(content)