hi all!
how can we list all directory as well as file(all hirerchical) in python script by giving the path
as input

I suggest starting with os.path. Import the os module and use os.path.walk() and os.path.join() to get the filename syntax right on all OS versions.

Thanks BearofNH
I got the answer
Thanks so much