1
0
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:
Paweł Jastrzębski
2016-03-01 20:56:12 +01:00
parent 9b25182393
commit 25331f5d81

View File

@@ -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)