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)
if section.find('/') != -1:
component = section.split('/', 1)[0]
override = self._binary_override(binary, component)
if section.find('/') != -1:
component = section.split('/', 1)[0]
override = self._binary_override(binary, component)