SyntaxFix
Write A Post
Hire A Developer
Questions
os.makedirs is what you need. For chmod or chown you'll have to use os.walk and use it on every file/dir yourself.
os.makedirs
chmod
chown
os.walk