You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ivan Camilo da Cruz (JIRA)" <ji...@apache.org> on 2018/02/15 19:38:00 UTC

[jira] [Created] (VFS-652) PatternFileSelector inner workings in disagreement with documentation

Ivan Camilo da Cruz created VFS-652:
---------------------------------------

             Summary: PatternFileSelector inner workings in disagreement with documentation
                 Key: VFS-652
                 URL: https://issues.apache.org/jira/browse/VFS-652
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.2
            Reporter: Ivan Camilo da Cruz


Javadoc on class declaration defines:

"A \{@link FileSelector} that selects based on regular expressions matched against *base filename*."

 

But code uses "path" and not base filename on includeFile method:

{{return this.pattern.matcher(fileInfo.getFile().getName().*getPath()*).matches();}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)