Assume I only have the folder /root, with no subdirectories. Is there an easy method in python to create all directories for the following (in one line) /root/a/b/c/d/e/f/g/foo.exe?
os.makedirs()
http://docs.python.org/library/os.html#os.makedirs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With