Wednesday, December 28, 2011

List files in a Directory-Pyton code

How to list the files along with path in python?

for root,dirs,files in os.walk('C:'):
    for file in files:
        print root+'\\'+file
This will print the file name along with absolute path.


raja's shared items

There was an error in this gadget

My "Testing" Bundle