![]() |
|
|
+ Search |
![]()
|
Feb 15th, 2004 10:58
Washington Corrêa, Sam G,
Here it goes:
import os
def getFiles(parent):
arqs = os.listdir(parent)
for a in arqs:
if os.path.isdir(parent + "/" + a):
getFiles(parent + "/" + a)
else:
print parent + "/" + a
Of course, this will only print to the output device, but you can modify
it to build a list or anything you want.
ok?
Junior