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

getPrefixLength return -1 if unix file contains colon

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: None
    • Component/s: Utilities
    • Labels:
      None

      Description

      A simple

      int prefixLength = FilenameUtils.getPrefixLength("/:foo/bar");
      

      return -1, but 0 was expected. The path is absolutely valid for unix systems.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kinow Bruno P. Kinoshita
                Reporter:
                tril Tristan Lins
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: