Set proper permissions for directories
This commit is contained in:
parent
c7d02f3f1d
commit
d9c75115e9
1 changed files with 2 additions and 0 deletions
|
|
@ -214,6 +214,8 @@ class BotRelease(object):
|
|||
tif = tarfile.TarInfo(name = zif.filename)
|
||||
tif.size = zif.file_size
|
||||
tif.mtime = calendar.timegm(zif.date_time) - timeshift
|
||||
if zif.is_dir():
|
||||
tif.mode = 0o755 # Set directory permissions (rwxr-xr-x)
|
||||
|
||||
tarf.addfile(tarinfo = tif, fileobj = zipf.open(zif.filename))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue