in reply to Re: Easy way to Remove Files if match condition time?
in thread Easy way to Remove Files if match condition time?
Get the creation time of each file with stat.Ahem, ctime is the inode modification time, not the creation time. UNIX at least, doesn't record that information.
See if the difference between now and the ctime is greater than (60 * 60 * 24 ).
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Easy way to Remove Files if match condition time?
by friedo (Prior) on Feb 05, 2005 at 00:43 UTC | |
by EchoAngel (Pilgrim) on Feb 05, 2005 at 13:27 UTC |