Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 30, 2024
1 parent c92b211 commit 4f00dec
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/org/apache/commons/io/FileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -2349,6 +2349,14 @@ public static Collection<File> listFiles(final File directory, final IOFileFilte
return toList(visitor.getFileList().stream().map(Path::toFile));
}

/**
* Lists files in the given {@code directory}, adding each file to the given list.
*
* @param directory A File for an assumed directory, not null.
* @param files The list to add found files, not null.
* @param recursive Whether or not to recurse into subdirectories.
* @param filter How to filter files, not null.
*/
@SuppressWarnings("null")
private static void listFiles(final File directory, final List<File> files, final boolean recursive, final FilenameFilter filter) {
final File[] listFiles = directory.listFiles();
Expand Down

0 comments on commit 4f00dec

Please sign in to comment.