Creating folders in Windows 10 with Python
- VC Healy
- Oct 28, 2020
- 1 min read
I have worked logically through from initially creating one folder, through to being able to create multiple folders an
d subfolders from a list on a text file in Windows 10 with Python.
All you have to do, using the CLI, is go to the root of where you want folders to be created, drop the script there, and run it.
Worried about folders already existing? Well don't, this script will log a message in the console to let you know which folder already exists and move on to the next in the list. A great little feature especially if there are a lot of subfolders. Saves hunting them down to check first.
The script also logs the folders created, so you can easily see what has or has not been created. Note: YOu can find the code in my GitHub repos.

Comments