I have huge data in a directory tree format like:
c:/user/name/class/std/section I to VI [all section has individual folder i.e. 6 folder in total and all folder have 100+ files to be processed]
I wrote a script in which if I give the folder containing the files e.g.Section I then it would process files inside using glob.iglobfunction.
Is it possible to write a script which can walk along directories by just entering one directory > processing file > leaving directory > entering different directory > and so on.
please help.
I have huge data in a directory tree format like: c:/user/name/class/std/section I to VI
Share
Addressing Abhisek’s comment on Aragon’s solution:
import os
folder = ‘C:’