mirror of
https://github.com/ciromattia/kcc
synced 2026-09-22 02:37:09 +00:00
ReadOnly clean should run only on Windows
This commit is contained in:
+2
-1
@@ -569,7 +569,8 @@ def getWorkFolder(afile):
|
|||||||
os.rmdir(workdir) # needed for copytree() fails if dst already exists
|
os.rmdir(workdir) # needed for copytree() fails if dst already exists
|
||||||
fullPath = os.path.join(workdir, 'OEBPS', 'Images')
|
fullPath = os.path.join(workdir, 'OEBPS', 'Images')
|
||||||
copytree(afile, fullPath)
|
copytree(afile, fullPath)
|
||||||
sanitizeTreeReadOnly(fullPath)
|
if sys.platform == 'win32':
|
||||||
|
sanitizeTreeReadOnly(fullPath)
|
||||||
return workdir
|
return workdir
|
||||||
except OSError:
|
except OSError:
|
||||||
raise
|
raise
|
||||||
|
|||||||
Reference in New Issue
Block a user