I want to create subfolders in already existing subfolders. For example, I have a rootdir with about 50 subfolders in it. In each subfolder I want to create about 5-6 new folders depending on the filename in the subfolder. Confusing? YeahIknow.. I think I know how to create new subfolders and naming them so I'm just wondering about how to walk between folders.
Mclovin
0
Newbie Poster
Recommended Answers
Jump to PostI want to create subfolders in already existing subfolders.
Use
os.makedirs()
to make directories.I'm just wondering about how to walk between folders.
Use
os.walk()
oros.chdir()
to move between directories.
All 4 Replies
jlm699
320
Veteran Poster
shadwickman
commented:
Thorough
+2
Mclovin
0
Newbie Poster
Mclovin
0
Newbie Poster
jlm699
320
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.