How to change file permissions in Python?
Answers
Answered by
0
chmod(path, 0444) is the Pythoncommand for changing file permissions in Python 2.x. For a combined Python 2 and Python 3 solution, change 0444 to 0o444 . You could always use Python to call the chmod command using subprocess
Similar questions