Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
joein committed Nov 12, 2024
1 parent 6c33d09 commit ae7944a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ def recursive_chmod(path: str, mode: int):
"""
# Change the permission of the current path
print("change permission", path, mode)
os.chmod(path, mode)
os.chmod(str(path), mode)

# If the path is a directory, recursively apply chmod to its contents
if os.path.isdir(path):
for entry in os.listdir(path):
full_path = os.path.join(path, entry)
if os.path.isdir(str(path)):
for entry in os.listdir(str(path)):
full_path = os.path.join(str(path), entry)
recursive_chmod(full_path, mode)

def on_error(func, path, exc_info):
Expand Down

0 comments on commit ae7944a

Please sign in to comment.