Skip to content

Commit e84d322

Browse files
committed
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 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/io/trunk@1470362 13f79535-47bb-0310-9956-ffa450edef68
1 parent 5d3269b commit e84d322

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/changes/changes.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ The <action> type attribute can be add,update,fix,remove.
4747
<body>
4848
<!-- The release date is the date RC is cut -->
4949
<release version="2.5" date="2013-??-??" description="New features and bug fixes.">
50+
<action issue="IO-328" dev="sebb" type="update">
51+
FileUtils.listFilesAndDirs includes original dir in results even when it doesn't match filter
52+
Javadoc: clarify that original dir is included in the results
53+
</action>
5054
<action issue="IO-330" dev="sebb" type="add">
5155
IOUtils#toBufferedOutputStream/toBufferedWriter to conditionally wrap the output
5256
Added asBufferedInputStream, asBufferedOutputStream, asBufferedReader, asBufferedWriter

src/main/java/org/apache/commons/io/FileUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,8 @@ private static IOFileFilter setUpEffectiveDirFilter(final IOFileFilter dirFilter
574574
* Finds files within a given directory (and optionally its
575575
* subdirectories). All files found are filtered by an IOFileFilter.
576576
* <p>
577-
* The resulting collection includes the subdirectories themselves.
577+
* The resulting collection includes the starting directory and
578+
* any subdirectories that match the directory filter.
578579
* <p>
579580
* @see org.apache.commons.io.FileUtils#listFiles
580581
*

0 commit comments

Comments
 (0)