listing files by modification time

Albert Hopkins marduk at letterboxes.org
Tue Feb 17 09:38:41 EST 2009


On Tue, 2009-02-17 at 19:46 +0530, Deepak Rokade wrote:
> 
> Yes I can do that but for that I will have to go through entire list
> of files and also I will have to first get the whole list of files
> present in directory.
> 
> In case of my application this list can be huge and so want to list
> the files which suits my criteria.
> Similar to the unix find command I sent earlier or like below.
> 

In that case use a generator like os.walk.  That's pretty much the same
thing "find" does anyway.





More information about the Python-list mailing list