Fix bug with safe_copy

pull/12/head
Dan Puttick 2017-03-09 01:53:44 -05:00
parent 484c71fc86
commit e73721e95f
2 changed files with 1 additions and 1 deletions

View File

@ -500,6 +500,7 @@ class KittenGroomerFileCheck(KittenGroomerBase):
self.process_archive(file)
elif file.should_copy:
self.safe_copy(file.src_path, file.dst_path)
file.set_property('copied', True)
file.write_log()
if hasattr(file, 'tempdir_path'):
self.safe_rmtree(file.tempdir_path)

View File

@ -321,7 +321,6 @@ class KittenGroomerBase(object):
dst_path, filename = os.path.split(dst)
self.safe_mkdir(dst_path)
shutil.copy(src, dst)
self.set_property('copied', True)
except Exception as e:
self.add_error(e, '')