how to get files in a directory

Batista, Facundo FBatista at
Wed Sep 29 16:59:31 CEST 2004

[Anand K Rayudu]

#- for root,dir,files in os.walk("E:\myDir1\MyDir2"):
#-    for i in dir:
#-        for j in files:
#-            fille = root+i+j
#-             print file

Maybe you should be using paths like "E:\\myDir1\\MyDir2".

.	Facundo

More information about the Python-list mailing list