in reply to Reading a directory and getting file dates
opendir(DIR,"/home/user/ptest"); while($dir=readdir(DIR)) { if(($dir ne ".")&&($dir ne "..")) { if(-d "/home/user/ptest/$dir") { ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $ati +me,$mtime,$ctime,$blksize,$blocks)=stat("/home/user/ptest/".$dir); print "FILE: ".$dir." Time: $mtime\n"; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading a directory and getting file dates
by b10m (Vicar) on Jun 01, 2005 at 20:55 UTC | |
by cool_jr256 (Acolyte) on Jun 01, 2005 at 20:59 UTC | |
by b10m (Vicar) on Jun 02, 2005 at 10:32 UTC |