|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Use File::Find and stat - Re: maintain control over very many filesby metadoktor (Hermit) |
| on Feb 25, 2002 at 07:18 UTC ( [id://147317]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You can use File::Find to traverse the specific directory that you want to look at and stat each file for the modify time as you process it using File::Find.
As for keeping track of new files you can always save the previous directory contents and compare them to whatever is in there now. If your list of files is truly huge then you may have to employ special tricks to optimize your compares. metadoktor "The doktor is in."
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||