Commit ebf7d451 authored by katharina.berger's avatar katharina.berger

added missing

parent 8dfbdc5f
import os
def change_permissions_recursive(path, dirmode=0o770, filemode=0o660):
for root, dirs, files in os.walk(path, topdown=False):
for dir in [os.path.join(root, d) for d in dirs]:
os.chmod(dir, dirmode)
for file in [os.path.join(root, f) for f in files]:
os.chmod(file, filemode)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment