def create_one(self, which, path, content): file = self.tmppath(os.path.join(which, path)) ensure_parent_dir(file) open(file, 'wb').write(content)
def add(self, path): ensure_parent_dir(self.tmppath(path)) open(self.tmppath(path), 'wb').write(path)