Skip to main content.
home | support | download

Back to List Archive

Re: FileSize

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Thu Jul 06 2006 - 19:17:57 GMT
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/  .  peter(at)not-real.peknet.com
Received on Thu Jul 6 12:17:57 2006