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

PatternFileSelector inner workings in disagreement with documentation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2
    • 1.0
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: