chmod directories recursively

Jennifer Thacher jthacher at unm.edu
Tue Jul 17 18:39:32 CEST 2007


Fabian Steiner wrote:
> Hello!
> 
> As far as I can see os.chmod() doesn't adjust permissions on directories
> recusively. Is there any other possibility to achieve this aim except for
> calling os.system('chmod -R /dir') directly?
> 
> Thanks,
> Fabian

Check out os.path.walk.

James



More information about the Python-list mailing list