commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IO-483) getPrefixLength return -1 if unix file contains colon
Date Sat, 24 Sep 2016 19:37:20 GMT

    [ https://issues.apache.org/jira/browse/IO-483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15519519#comment-15519519
] 

ASF GitHub Bot commented on IO-483:
-----------------------------------

GitHub user marko-vasic opened a pull request:

    https://github.com/apache/commons-io/pull/19

    [IO-483] FilenameUtils.getPrefixLength fix for unix files/folders starting with colon

    FilenameUtils.getPrefixLength now works correctly for unix files/folder that are in the
root folder and start with colons

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/marko-vasic/commons-io master

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/commons-io/pull/19.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #19
    
----
commit a7bd568249f9ec20b69b2a700da6a0648e93a842
Author: Marko Vasic <marko.z.vasic@gmail.com>
Date:   2016-09-24T19:32:50Z

    [IO-483] FilenameUtils.getPrefixLength now works correctly for unix files/folder that
are in the root folder and start with colons

----


> getPrefixLength return -1 if unix file contains colon
> -----------------------------------------------------
>
>                 Key: IO-483
>                 URL: https://issues.apache.org/jira/browse/IO-483
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.4
>            Reporter: Tristan Lins
>
> A simple
> {code:java}
> int prefixLength = FilenameUtils.getPrefixLength("/:foo/bar");
> {code}
> return {{-1}}, but {{0}} was expected. The path is absolutely valid for unix systems.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message