I am looking to iterate on items within an array using python and create folders for items.
The following is my format:
'0001': ['123101203', '1221231102136'],
'0002': ['1681235932', '22612312303', '213412312341', '123123610116'],
'0003': ['123408503']
What I am looking to do is to look through the Array and create Folders for each item and subfolders for each sub-item.
i.e. there is a 0001 folder, and within it there is a 1230101203 folder and a 1222.. folder , etc.
I was approaching it like the following:
sample = [Array]
for s in sample:
os.mkdir(n)
os.chdir(n + '/')
Create subfolders for each array item
# os.chdir('../')