Old File Purge Suggestions?

Chris Liechti cliechti at gmx.net
Sun Mar 17 19:47:45 EST 2002


Didjit <Didjit at myapebutt.com> wrote in
news:1W9l8.176946$Dl4.19853391 at typhoon.tampabay.rr.com: 
> I'm using sys.stdin.readlines(): getting the date passed in from 
> from "ls -l" (linux). Then compare dates using the mxDateTime 

i think os.stat gives you the same information as "ls -l" and you 
don't have to parse strings (use os.listdir to get the names and then 
stat on them)

> module after
> shoving dates into a format I can use. Am I on the right track or 
> is there a better way to accomplish what I need. Functions or other
> modulesI should be using. 
> 
> TIA
> 
> Chris

dito ;-)

-- 
Chris <cliechti at gmx.net>




More information about the Python-list mailing list