How can I create directories recursively? [duplicate]

Is there a Python method to create directories recursively? I have this path:

/home/dail/

I would like to create

/home/dail/first/second/third

Can I do it recursively or I have to create one directory after the other?

The same thing for:

chmod and chown can I do it recursively without assign permissions for each file/dir?

5 Answers
5

Leave a Comment