You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mikhail Khorkov (JIRA)" <ji...@apache.org> on 2017/11/28 07:46:00 UTC

[jira] [Issue Comment Deleted] (IO-558) FilenameUtils#directoryContains uses startWith-logic

     [ https://issues.apache.org/jira/browse/IO-558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mikhail Khorkov updated IO-558:
-------------------------------
    Comment: was deleted

(was: Patch with fix.)

> FilenameUtils#directoryContains uses startWith-logic
> ----------------------------------------------------
>
>                 Key: IO-558
>                 URL: https://issues.apache.org/jira/browse/IO-558
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.6
>            Reporter: Mikhail Khorkov
>         Attachments: _IO_558__Improve_logic_of_FilenameUtils_directoryContains__The_method_s_logic_was_wrong_in.patch
>
>
> org.apache.commons.io.FilenameUtils#directoryContains uses startWith-logic to find out result.
> It is wrong for cases like directoryContains("/a", "/aa").
> In patch:
> # improve the method logic
> # write tests for the method
> # clean up the method's javaDoc



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)