Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-423

FilenameUtils.directoryContains assumes separator at end of parent path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.4
    • None
    • Utilities
    • None

    Description

      FilenameUtils.directoryContains("/abc", "/abcd") returns true, while FilenameUtils.directoryContains("/abc/", "/abcd") returns false.

      The implementation does a simple checkStartsWith() without taking the separator into consideration.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vinithra Vinithra Varadharajan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: