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.
In reply to Re^2: Easy way to Remove Files if match condition time?
by dave_the_m
in thread Easy way to Remove Files if match condition time?
by EchoAngel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |