All,

I am trying to write some portable code for listing files and directories on 
Unix and Win and possibly Mac. I want to get specifically the modification 
date of files into a format that can load into mySQL in yyyy-mm-dd format. 
(This will help me greatly with housekeeping.)


I have looked at File::Find which is great for getting fast listings but 
doesnt give me the mod date, just age?

Use File::Find;
find sub { print OUT $File::Find::name , -d && '/', ' ', "\t", -s, "\t", 
-A"\n" }, @ARGV;

 Are there any modules that would easily give me that info (fspec) or will I 
have to use stat and then localtime with posix to parse the epoch date which 
seems also very slow as it traverses the directory tree? 

Thanks for any advice.

Regards,


Mark Bedish
Surrey,UK


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to