you're right, my bad. using the script below, the result i got was "Wed Dec
31 19:00:00 1969". turned out to be a permissions problem where the id the
script was running under couldn't see the parent directory. doh!! thanks
for the help.
my ($full_dir, @stat);
$full_dir="c:\\mnt\\data\\mp3";
(@stat)=stat("$full_dir");
print scalar(localtime($stat[10]));
- kwan
-----Original Message-----
From: $Bill Luebkert [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 18, 2001 12:33 PM
To: Kwan Ng
Cc: '[EMAIL PROTECTED]'
Subject: Re: get directory create date
Kwan Ng wrote:
>
> i have a bunch of sub-directories that i want to parse if they were
created
> within a two week period. i know how to get the modified date on a file
> using stat, but stat doesn't work on directories. is there a way to get
the
> create date on a directory? thanks.
Does for me. The atime has no hh:mm:ss field, but the mod/create times are
accurate.
atime=Mon Jun 18 00:00:00 2001
mtime=Mon Jun 18 09:30:38 2001
ctime=Mon Jun 18 09:30:36 2001
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // http://dbecoll.webjump.com/ (Free Perl site)
-/-' /___/_<_</_</_ Castle of Medieval Myth & Magic
http://www.todbe.com/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web