I've tried endlessly searching for a solution to this, but couldn't seem to find out.
I have a list of paths:
dirToModify = ['includes/','misc/','modules/','scripts/','themes/']
I want to loop through each list-item (a dir in this case) and set all files and dirs to 777
I've done this for files like:
for file in fileToModify:
os.chmod(file, 0o777)
But can't seem to figure out a good way to do this recursively to folders.
Can anyone help?