1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-30 08:57:40 +00:00

ReadOnly clean should run only on Windows

This commit is contained in:
Paweł Jastrzębski
2013-06-17 18:01:07 +02:00
parent acb3e5058d
commit f353c4edf2

View File

@@ -569,7 +569,8 @@ def getWorkFolder(afile):
os.rmdir(workdir) # needed for copytree() fails if dst already exists
fullPath = os.path.join(workdir, 'OEBPS', 'Images')
copytree(afile, fullPath)
sanitizeTreeReadOnly(fullPath)
if sys.platform == 'win32':
sanitizeTreeReadOnly(fullPath)
return workdir
except OSError:
raise