Re: FileSize
Peter Karman <[email protected]>
| Newsgroups | gmane.comp.web.swish-e |
|---|---|
| Message-ID | <[email protected]> |
Gertjan Hofman scribbled on 7/6/06 1:37 PM:
> is there no way
> to limiting the max size of the file which is analyzed
> when not using -S prog ? It seems such a simple &
> useful feature, yet I can't find it.
I realize I didn't respond directly to this question. No, swish-e itself
has no such feature. You'd want to implement in DirTree.pl with
something like:
sub check_path {
my $path = shift;
return 0 if -s $path > 10000; # max bytes
return 1; # return true to process this file
}
--
Peter Karman . http://peknet.com/ . [email protected]