[
https://issues.apache.org/jira/browse/IO-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sebb resolved IO-328.
---------------------
Resolution: Fixed
Fix Version/s: 2.5
URL: http://svn.apache.org/r1470362
Log:
IO-328 FileUtils.listFilesAndDirs includes original dir in results even when it
doesn't match filter
Javadoc: clarify that original dir is included in the results
Modified:
commons/proper/io/trunk/src/changes/changes.xml
commons/proper/io/trunk/src/main/java/org/apache/commons/io/FileUtils.java
> FileUtils.listFilesAndDirs includes original dir in results even when it
> doesn't match filter
> ---------------------------------------------------------------------------------------------
>
> Key: IO-328
> URL: https://issues.apache.org/jira/browse/IO-328
> Project: Commons IO
> Issue Type: Bug
> Reporter: Hoss Man
> Fix For: 2.5
>
> Attachments: IO-328.patch, IO-328.testcase.patch
>
>
> listFilesAndDirs seems to always include the "directory" passed as input in
> it's resulting Collection. This is unexpected given the docs for the
> method...
> bq. Finds files within a given directory (and optionally its subdirectories).
> All files found are filtered by an IOFileFilter.
> * the "given directory" is not a subdirectory of itself
> * it is not subjected to the IOFileFilter dirFilter, it is always added.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira