Skip Menu |

This queue is for tickets about the File-Find-Rule CPAN distribution.

Report information
The Basics
Id: 8808
Status: resolved
Priority: 0/
Queue: File-Find-Rule

People
Owner: Nobody in particular
Requestors: tom+cpan [...] zulutango.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.28
Fixed in: (no value)



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