|more useful options|
Re: File creation dateby crabbdean (Pilgrim)
|on Mar 15, 2004 at 04:05 UTC||Need Help??|
As far as I'm aware, not really. But I'm curious, why would you want to? A little more info may help us direct you accordingly to an answer. You could try File::stat instead. Check out the module documentation for a synopsis.
... and use the $st for any other checks instead of calling stat($file) each time. The reason: each time you call "stat" its a disk IO, which slows things down.
** if you want to know the last time any file in a directory was modified do a stat on the directory. I should contain a modified time of the youngest file. It will save you having to stat the entire subdirectory tree.
** if you are stat'ing lots of files, considering for speed sake refining what you call stat on instead of just stat'ing everything. That is, reduce the amount of files you'll stat by using a search criteria to get rid of 80% of the files you don't need to stat (depending on your needs).
That's all that comes to mind at moment.
The Funkster of Mirth
Programming these days takes more than a lone avenger with a compiler. - sam
RFC1149: A Standard for the Transmission of IP Datagrams on Avian Carriers