in reply to Re: accessing file attibutes
in thread accessing file attibutes
$dir = "/cdw/dept/dss/home_dir/s006258"; die("Unable to open directory '$dir': $!") unless(opendir($dh, $dir)); while (defined(my $file = readdir($dh))) { $path = $dir."/".$file; if(-d $path) { $mtime = (stat($path))[9]; print "$path ,".scalar(localtime($mtime))."\n"; } } closedir $dh;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: accessing file attibutes
by Joost (Canon) on Nov 15, 2006 at 20:47 UTC | |
by Anonymous Monk on Nov 15, 2006 at 20:54 UTC | |
by Joost (Canon) on Nov 15, 2006 at 21:06 UTC | |
by runrig (Abbot) on Nov 15, 2006 at 23:04 UTC | |
by Anonymous Monk on Nov 15, 2006 at 21:14 UTC | |
|
Re^3: accessing file attibutes
by ikegami (Patriarch) on Nov 15, 2006 at 22:45 UTC |