From ee7b0cf730c376ffb9777a5a7186c05406f18e6c Mon Sep 17 00:00:00 2001 From: palmtree5 <3577255+palmtree5@users.noreply.github.com> Date: Thu, 3 May 2018 22:10:56 -0800 Subject: [PATCH] [V3 Utils] fix files not being chmodded (#1578) --- redbot/core/utils/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/redbot/core/utils/__init__.py b/redbot/core/utils/__init__.py index 665389a3e..13011d008 100644 --- a/redbot/core/utils/__init__.py +++ b/redbot/core/utils/__init__.py @@ -22,4 +22,6 @@ def safe_delete(pth: Path): os.chmod(root, 0o755) for d in dirs: os.chmod(os.path.join(root, d), 0o755) + for f in files: + os.chmod(os.path.join(root, f), 0o755) shutil.rmtree(str(pth), ignore_errors=True)