Ask a Question related to PERL Modules, Design and Development.
-
jaws@mindspring.com #1
File::Find with compressed NTFS directories
My appologies if this has already been posted.... Just point where...
I am using the following script to get file path, filename, and
timestamp. Worked fine until the NT guys started compressing folders.
I can point the script explicitly at a compressed folder and it will
recurse down. Unfortunately it does not seem to "see" compressed
folders by default and then recurse down.
Is there an update to this somewhere??
#!c:\perl\bin\perl -w
# power.pl uses the arc server name and returns the full path and file
name
# along with the timestamp of the file......
use File::Find;
# find \&Getit , 'develop/';
# find \&Getit , 'j:/depts/wspproje/projectd/library/';
# find \&Getit , '\\\HDQ_Doc1/Vol1/depts/wsp projects/project
documents/library';
find \&Getit , '\\\myServer.domain.com/PowerServer/';
sub Getit
{
if ( -f && (@FileStat = stat) )
{
$FileName =$File::Find::name;
$FileTime = $FileStat[9];
$LocalFileTime =localtime($FileTime);
$FileName =~s|/|\\|g; # added to replace foreward slashes with
back slashes... 4/26/00
$FileName =~s|\\\\10\.228\.128\.11||g;
$FileName =~s|\\PowerServer|PowerServer|g;
print("\n$FileName|$LocalFileTime");
}
}
John
jaws@mindspring.com Guest
-
find who deleted directories
Somebody deleted my publicly accessible directories. Those were public because the box is confined to a development team and only the developers... -
#21944 [Ver->Csd]: zlib compressed pages can be flushed causing compressed output to be displayed
ID: 21944 Updated by: iliaa@php.net Reported By: phpbug at paragontech dot com -Status: Verified +Status: ... -
Logrotate postscript not able to find just-compressed log
I want to be able to copy a just-compressed logfile from one machine to another. Unfortunately, the following rule does not seem to work as... -
Files::Find problems with compressed ntfs
John Armsby wrote: If the folder does not look like a "real" folder according to -f, then File::Find won't recurse down into it. --... -
File::Find Problems with ntfs compressed folders
My apologies if this has already been posted.... Just point where... I am using the following script to get file path, filename, and timestamp. ...



Reply With Quote

