Creating a directory in a directory

I have a short script that I use to create a folder (pulls name from range), the creates sub folders based on text and reference to the root folder. What I want is sub folders, in a sub folder.

For example, a sub folder I’m creating is named permit (under the root folder). I want to then create a folder called building permit and another called electrical permit, under permit.

I have other folders besides permits created in the process. Diving one layer deeper is stumping me.

It seems like I need to reference a sub folder as a file object first, but I’m rusty and probably missing something. Point me in the right direction, please.

submitted by /u/BUNKBUSTER
[link] [comments]

Leave a Reply