Computer Science, asked by AjayPrabhu3447, 1 year ago

How to change file permissions in Python?

Answers

Answered by nikhildixit13
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