mirror of https://github.com/CIRCL/PyCIRCLean
Fix bug with safe_copy
parent
484c71fc86
commit
e73721e95f
|
@ -500,6 +500,7 @@ class KittenGroomerFileCheck(KittenGroomerBase):
|
||||||
self.process_archive(file)
|
self.process_archive(file)
|
||||||
elif file.should_copy:
|
elif file.should_copy:
|
||||||
self.safe_copy(file.src_path, file.dst_path)
|
self.safe_copy(file.src_path, file.dst_path)
|
||||||
|
file.set_property('copied', True)
|
||||||
file.write_log()
|
file.write_log()
|
||||||
if hasattr(file, 'tempdir_path'):
|
if hasattr(file, 'tempdir_path'):
|
||||||
self.safe_rmtree(file.tempdir_path)
|
self.safe_rmtree(file.tempdir_path)
|
||||||
|
|
|
@ -321,7 +321,6 @@ class KittenGroomerBase(object):
|
||||||
dst_path, filename = os.path.split(dst)
|
dst_path, filename = os.path.split(dst)
|
||||||
self.safe_mkdir(dst_path)
|
self.safe_mkdir(dst_path)
|
||||||
shutil.copy(src, dst)
|
shutil.copy(src, dst)
|
||||||
self.set_property('copied', True)
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.add_error(e, '')
|
self.add_error(e, '')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue