permission change of files in python

前端 未结 3 601
陌清茗
陌清茗 2021-02-13 10:35

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

3条回答
  •  说谎
    说谎 (楼主)
    2021-02-13 11:23

    You can instead use an OS specific function call as follows:

    os.system('chmod 777 -R *')
    

提交回复
热议问题