Skip to content

Commit

Permalink
chmod main path even when acting recursively
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan200101 committed Sep 15, 2023
1 parent 101bf43 commit 6b32d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/localplatform.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def chmod(path : str, permissions : int, recursive : bool = True) -> bool:
os.chmod(os.path.join(root, d), octal_permissions)
for d in files:
os.chmod(os.path.join(root, d), octal_permissions)
else:
os.chmod(path, octal_permissions)

os.chmod(path, octal_permissions)
except:
return False

Expand Down

0 comments on commit 6b32d35

Please sign in to comment.