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

getPrefixLength return -1 if unix file contains colon

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4
    • None
    • Utilities
    • 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

              kinow Bruno P. Kinoshita
              tril Tristan Lins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: