keep perms as int. Fixes #609

This commit is contained in:
clinton-hall 2014-11-16 11:47:01 +10:30
commit 7fa4784faf

View file

@ -140,7 +140,7 @@ def extract(filePath, outputDestination):
if success:
# sleep to let files finish writing to disk
sleep (3)
perms = oct(stat.S_IMODE(os.lstat(os.path.split(filePath)[0]).st_mode))
perms = stat.S_IMODE(os.lstat(os.path.split(filePath)[0]).st_mode)
for dir, subdirs, files in os.walk(outputDestination):
for subdir in subdirs:
if not os.path.join(dir, subdir) in origFiles: