![]() |
|
|
+ Search |
![]()
|
Feb 15th, 2004 10:45
Washington Corrêa, Harley Pax,
Here it goes:
def listDir(p):
arqs = os.listdir(p)
arqd = map(lambda x: [os.path.getctime(p + "/" + x), x], arqs)
arqd.sort()
return map(lambda x: x[1], arqd)
Example:
g = listDir('/temp')
for i in g:
print i
ok?
Junior