skip path prune



How do you use the prune function to skip a printing all of the
contents of a folder? It will not print folder 3 but does print the
contents of folder 3 which I do not want printed.

#!C://Perl/bin/perl
use CGI ':standard';
use CGI::Carp 'fatalsToBrowser';
#use strict;
use warnings;
use File::Find;
my $file_count = 0;
my $dir_count = 0;


$title = "Find Files";
print header,
start_html($title),
h1($title);

find ( {
wanted => \&wanted}, 'C:/Documents and
Settings/whatever/Desktop/test');

printf "\nThere are %d files in %d directories.\n",
$file_count,
$dir_count;

sub wanted {

if (-d) {

print $File::Find::name, "\n" unless -d =~ /^folder3/;

$dir_count++;
}

elsif (-f _) {
print " <TR> <TD ALIGN=RIGHT>File name is
$File::Find::name</TD></TR><BR></BR>";


$file_count++;

}
}


end_hmtl;

.



Relevant Pages

  • Re: rar files
    ... Printing & Imaging ... WinRAR screen that appears, choose extract to. ... Note what folder it ...
    (microsoft.public.windowsxp.video)
  • Re: Wednesday Luser Report
    ... I share an office with my boss and another employee, ... > folder was named after the format, and other than that, they're not related ... Putting an image in the CMYKPic folder does not make it a CMYK ... the one who is not printing will ask "is it alright to print ...
    (microsoft.public.cert.exam.mcse)
  • Re: Slow printing Windows Server 2003
    ... >>> Big processing print files better done at the WS vs the Server for an inkjet device like that unit. ... I would try at the WS printing to file, and then put that file onto a shared spool folder, like Z:\Spool ...then at the server run a spooler program to send it over to the device. ... Setup a C:\Spool Folder on YOUR PC and Share to all on network. ...
    (microsoft.public.windows.server.general)
  • Re: Cannot Print Anything Except E-Mail Messages
    ... FYI - Deletion of the contents of the folder "Printing Forms" worked! ... > A problem with SP2 has caused crashes when printing weekly calendars under ... use Font Book app to check for font corruption & duplication. ...
    (microsoft.public.mac.office.entourage)
  • Re: Printing list of files in a folder
    ... > folder that you can open in notepad for printing or saving. ... > Open a command prompt, go to the folder of choice. ...
    (microsoft.public.windowsxp.help_and_support)