in reply to Re: Why is Stat() Not Stating All Files?
in thread Why is Stat() Not Stating All Files?
#!/usr/bin/perl my $dirtoread="/home/mydir/public_html/t/d/"; opendir(IDIR, $dirtoread) || die "Error Opening Directory"; print "Content-type: text/html\n\n"; my @dots = grep { /^\./ && -f "$dirtoread/$_" } readdir(IDIR); foreach $file (@dots) { ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$bl +ksize,$blocks) = stat($file); print <<EOF; File: $file<br> dev: $dev<br> ino: $ino<br> mode: $mode<br> nlink: $nlink<br> uid: $uid<br> gid: $gid<br> rdev: $rdev<br> size: $size<br> atime: $atime<br> mtime: $mtime<br> ctime: $ctime<br> blksize: $blksize<br> blocks: $blocks<br><br><br> EOF } closedir(IDIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why is Stat() Not Stating All Files?
by PodMaster (Abbot) on May 02, 2005 at 06:27 UTC | |
by awohld (Hermit) on May 02, 2005 at 21:45 UTC | |
by PodMaster (Abbot) on May 03, 2005 at 04:04 UTC |