mirror of
https://github.com/ciromattia/kcc
synced 2026-05-22 23:42:13 +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.")
|
raise UserWarning("Failed to detect archive format.")
|
||||||
else:
|
else:
|
||||||
raise UserWarning("Failed to open source file/directory.")
|
raise UserWarning("Failed to open source file/directory.")
|
||||||
|
sanitizePermissions(path)
|
||||||
newpath = mkdtemp('', 'KCC-')
|
newpath = mkdtemp('', 'KCC-')
|
||||||
copytree(path, os.path.join(newpath, 'OEBPS', 'Images'))
|
copytree(path, os.path.join(newpath, 'OEBPS', 'Images'))
|
||||||
rmtree(path, True)
|
rmtree(path, True)
|
||||||
|
|||||||
Reference in New Issue
Block a user