1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-31 01:17:50 +00:00

Forbidding OSX/Linux to open subdirectories is not idea of the year

This commit is contained in:
Paweł Jastrzębski
2013-06-19 14:33:51 +02:00
parent 19bd2431aa
commit bb51b53e11

View File

@@ -666,7 +666,7 @@ def sanitizeTreeBeforeConversion(filetree):
if os.path.getsize(os.path.join(root, name)) == 0:
os.remove(os.path.join(root, name))
for name in dirs:
os.chmod(os.path.join(root, name), stat.S_IWRITE | stat.S_IREAD)
os.chmod(os.path.join(root, name), stat.S_IWRITE | stat.S_IREAD | stat.S_IEXEC)
def Copyright():