From d9c75115e93c4b31439ea6440b71e077af51b62b Mon Sep 17 00:00:00 2001 From: Li Zhuohua Date: Mon, 29 Jul 2024 17:29:35 +0800 Subject: [PATCH] Set proper permissions for directories --- package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.py b/package.py index 5a2419e..3928bea 100644 --- a/package.py +++ b/package.py @@ -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))