Assume I have such folders
rootfolder
|
/ \ \
01 02 03 ....
|
13_itemname.xml
So under my rootfolder, each directory represents a month like 01 02 03 and under these directories I have items with their create hour and item name such as 16_item1.xml, 24_item1.xml etc, as you may guess there are several items and each xml created every hour.
Now I want to do two things:
I need to generate a list of item names for a month, ie for 01 I have item1, item2 and item3 inside.
I need to filter each item, such as for item1: i want to read each from 01_item1.xml to 24_item1.xml.
How can I achieve these in Python in an easy way?