-sub crawl($$) {
- my $path = shift;
- my $options = shift;
- my @results = $path;
- opendir(DIR,$path);
- foreach my $file (readdir(DIR)) {
- if ($file !~m/^(\.(svn|\.?)|CVS$options)$/) {
- push @results, crawl("$path/$file",$options);
- }
- }
- closedir(DIR);
- return @results;
-}