- + require File::Spec;
- + $base=File::Spec->canonpath($base);
- + my $ret=File::Spec->canonpath($file);
- +
- + $ret=~s#^$base/*##;
- + return $ret;
- +} #}}}
- +
- +sub is_prune ($;$) { #{{{
- + return basefile($_[0], $_[1])=~m/$config{wiki_file_prune_regexp}/;
+ + my $rel=abs2rel($file, $base);
+ + return $rel eq '.' ? 0 : $rel=~m/$config{wiki_file_prune_regexp}/;