mirror of
https://github.com/ciromattia/kcc
synced 2026-01-30 08:57:40 +00:00
Fixed permission issues (close #179)
This commit is contained in:
@@ -591,6 +591,7 @@ def getWorkFolder(afile):
|
||||
raise UserWarning("Failed to detect archive format.")
|
||||
else:
|
||||
raise UserWarning("Failed to open source file/directory.")
|
||||
sanitizePermissions(path)
|
||||
newpath = mkdtemp('', 'KCC-')
|
||||
copytree(path, os.path.join(newpath, 'OEBPS', 'Images'))
|
||||
rmtree(path, True)
|
||||
|
||||
Reference in New Issue
Block a user