Aug-19-2018, 06:59 PM
(Aug-19-2018, 06:43 PM)ichabod801 Wrote: The only way I can think of to make this code simpler is to use a loop:
for dir in ('Maps', 'Sounds', 'Music', 'Textures'): os.mkdir(dir)os.makedirs failed because it makes directories down the file tree (as needed), not across it. So it makes a Maps directory, then a Sounds directory in the Maps directory, and so on.
Hi there
Big thanks for the reply. I'm not familiar with loops but will look into it. Just tested your code and it works perfectly. I understand your explanation of makedirs and why it failed - thank you. Baby steps for me
