commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinithra Varadharajan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IO-423) FilenameUtils.directoryContains assumes separator at end of parent path
Date Thu, 30 Jan 2014 22:58:10 GMT
Vinithra Varadharajan created IO-423:
----------------------------------------

             Summary: FilenameUtils.directoryContains assumes separator at end of parent path
                 Key: IO-423
                 URL: https://issues.apache.org/jira/browse/IO-423
             Project: Commons IO
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 2.4
            Reporter: Vinithra Varadharajan


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.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message