for root, directories, filenames in os.walk('/tmp/'): for filename in filenames: print os.path.join(root,filename)
What’s the easiest way to recursively get a list of all the files in a directory tree in Python? – Quora
Leave a reply
for root, directories, filenames in os.walk('/tmp/'): for filename in filenames: print os.path.join(root,filename)