how to get files in a directory

Batista, Facundo FBatista at uniFON.com.ar
Wed Sep 29 10:59:31 EDT 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