Fix pruning
This commit is contained in:
parent
92125c7c4e
commit
118bb0a2e7
|
@ -105,10 +105,13 @@ sub list {
|
|||
$self->log(10, "list: in $File::Find::dir");
|
||||
if ($self->{prune}{$File::Find::dir}) {
|
||||
return ();
|
||||
} else {
|
||||
}
|
||||
my $last_component = $File::Find::dir =~ s{.*/}{}r;
|
||||
if ($self->{prune}{$last_component}) {
|
||||
return ();
|
||||
}
|
||||
# not sure if sorting is useful
|
||||
return sort @_;
|
||||
}
|
||||
},
|
||||
wanted
|
||||
=> sub {
|
||||
|
|
Loading…
Reference in New Issue