I have a directory with the following subdirs:
folder_001 to folder_100
However, I need to test as some directories may be missing. Is the following the best way to accomplish this. Seems a bit long winded.
>>> l = []
>>> for i in l:
... for f in os.listdir('.'):
... if not os.path.exists(i):
... os.mkdir(i)
...
Thanks.