[?] sorting files by modification time.
Francisco Borges
frandebo at latt.if.usp.br
Tue Oct 2 14:36:30 EDT 2001
Hello all,
I want to list some files in a directory and sort them by the
modification time.
As far as I could tell, I can't do that with os.listdir and neither
with glob, is this right?
I thought about
>>> os.system('ls -t')
but it will thrown the output to stdout. Is there a simpler way to do
this than start messing with the stdout or with the shell???
thank you for your attention,
--
Francisco.
__o
`\<,
_____(*)/(*)_____
More information about the Python-list
mailing list