def export(self, directory, mode=None, symlink=True, ignore_existing=False):
"""export a copy of the upload
def export(self, directory, mode=None, symlink=True, ignore_existing=False):
"""export a copy of the upload
- self.directory = tempfile.mkdtemp(dir=cnf.get('Dir::TempPath'))
- self.export(self.directory, symlink=True)
+ self.directory = utils.temp_dirname(parent=cnf.get('Dir::TempPath'),
+ mode=mode,
+ group=self.group)
+ self.export(self.directory, symlink=symlink)