Here’s the code for the files created in the lesson for quick copy-pasting:
paths = [
"notes_dir/goals1.txt",
"notes_dir/goals2.txt",
"notes_dir/yearly/2033.txt",
"notes_dir/yearly/2034.txt",
"notes_dir/plans/goals3.txt",
"notes_dir/plans/monthly/january.txt",
"notes_dir/plans/monthly/february.txt",
"notes_dir/plans/monthly/march.md",
]

Thoth on Jan. 24, 2026
In order to get around the below quoted error, I first use a “for loop” to make all the directories using: mkdir(parents=True), then I use a second “for loop” to create the files. However, my method seems a bit redundant/verbose. Mr. Breuss seems to be more concise than I, but I can’t discern how he does it. Can someone explain it to me? Thank you.