hi all!
how can we list all directory as well as file(all hirerchical) in python script by giving the path
as input
sam_only96
0
Newbie Poster
Recommended Answers
Jump to PostI suggest starting with os.path. Import the os module and use
os.path.walk()
andos.path.join()
to get the filename syntax right on all OS versions.
All 2 Replies
Reply to this topic
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.