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

getPrefixLength returns wrong length on linux for filename "C:"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.9.0
    • None
    • None

    Description

      On most unix filesystems only null byte and / are reserved characters. So its perfectly valid to have a file called "C:".

      If the getPrefixLength method is called for the path of such a file then it returns 2 whereas the expected value is 0.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ichbinkeinreh Patrick Bender
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h 40m
                3h 40m