-2

How to create directories with python module os like

$ mkdir -p /some_non_exsitance_path/path
  • 2
    already answer here: https://stackoverflow.com/questions/273192/how-can-i-safely-create-a-nested-directory – Krishna Chaurasia Jan 23 '21 at 09:44
  • Does this answer your question? [How can I safely create a nested directory?](https://stackoverflow.com/questions/273192/how-can-i-safely-create-a-nested-directory) – mkrieger1 Jan 23 '21 at 09:51

1 Answers1

-1

There is a method in the os module that allows you to create multiple folders

os.makedirs(r'/some_non_exsitance_path/path')