def create_one(self, which, path, content):
     file = self.tmppath(os.path.join(which, path))
     ensure_parent_dir(file)
     open(file, 'wb').write(content)
Exemple #2
0
 def add(self, path):
     ensure_parent_dir(self.tmppath(path))
     open(self.tmppath(path), 'wb').write(path)
 def add(self, path):
     ensure_parent_dir(self.tmppath(path))
     open(self.tmppath(path), 'wb').write(path)
Exemple #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)