SyntaxFix
Write A Post
Hire A Developer
Questions
If you have desired permissions saved to string then do
s = '660' os.chmod(file_path, int(s, base=8))