I want to change the file permission for all the files from my current directory tree. I am trying to open each directory and open the files and change the permission using
You can instead use an OS specific function call as follows:
os.system('chmod 777 -R *')