Skip to content

Commit

Permalink
Temp
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Jan 15, 2025
1 parent 2782f9e commit ed4f632
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/rmdir.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

target = sys.argv[1]

for root, dirs, files in os.walk(target):
children = dirs.extend(files)
for name in children:
filepath = os.path.join(root, name)
os.chmod(filepath, 0o777)
# for root, dirs, files in os.walk(target):
# children = dirs + files
# for name in children:
# filepath = os.path.join(root, name)
# os.chmod(filepath, 0o777)

shutil.rmtree(target)

0 comments on commit ed4f632

Please sign in to comment.