Python 3 - How to chmod all files in a given directory?

前端 未结 0 1496
悲&欢浪女
悲&欢浪女 2020-12-10 00:12

In a python 3 script I\'m trying to add execution permissions to all .sh files in a directory, as follows:

from os import chmod
chmod(\'/path_to_dir/dir_prefi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题