Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-652

PatternFileSelector inner workings in disagreement with documentation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 1.0
    • Labels:
      None

      Description

      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();

        Attachments

          Activity

            People

            • Assignee:
              b.eckenfels Bernd Eckenfels
              Reporter:
              ivancruz Ivan Camilo da Cruz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: