Subject: | maxdepth bug |
When using a maxdepth of any value, if the directory name specified via the "in" method has a trailing slash, nothing (or only that directory when finding directories) will be returned. If the directory doesn't have a trailing slash, it works as expected.
The code
print join "\n", File::Find::Rule->file->maxdepth(1)->in("/tmp/");
won't return any files for example, whereas
print join "\n", File::Find::Rule->file->maxdepth(1)->in("/tmp");
will.
Dist: File-File-Rule-0.28
Perl: 5.8.4 built for i686-linux
OS: Linux wintermute 2.4.25 #4 Sun Jun 20 16:09:58 UTC 2004 i686 AMD Athlon(tm) Processor AuthenticAMD GNU/Linux