Skip Menu |

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

Report information
The Basics
Id: 38732
Status: new
Priority: 0/
Queue: File-Find-Rule-Filesys-Virtual

People
Owner: Nobody in particular
Requestors: peter [...] makholm.net
Cc:
AdminCc:

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



Subject: Different behaviour for maxdepth(0) compared with File::Find::Rule
With File::Find::Rule I can use maxdepth(0) and not have it scan the input directory but only return the directory itself. With File::Find::Rule::Filesys::Virtual maxdepth(0) nd maxdepth(1) seems to do the exact same thig, i.e. returns a directory listing of the input directory. While seamingly unuseful this simplyfies code that have to handle depths of zero, one and, infinity.