[
https://issues.apache.org/jira/browse/IO-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17214742#comment-17214742
]
Gary D. Gregory edited comment on IO-597 at 10/15/20, 2:34 PM:
---------------------------------------------------------------
Some of our {{FileUtils}} API can be reimplemented in terms of {{Files.walk*}},
even the ones that take {{IOFileFilter}}s, see git master.
was (Author: garydgregory):
Some of our FileUtils API can be reimplemented in terms of Files.walk, even the
ones that take IOFileFilers, see git master.
> FileUtils.iterateFiles goes out of memory when executed for a directory with
> large number of files
> --------------------------------------------------------------------------------------------------
>
> Key: IO-597
> URL: https://issues.apache.org/jira/browse/IO-597
> Project: Commons IO
> Issue Type: Bug
> Components: Utilities
> Reporter: Arvind
> Priority: Major
>
> FileUtils.iterateFiles goes out of memory when executed for a directory with
> large number of files because it uses the listFiles method which returns an
> array of java.io.File objects. The iterator itself should not be derived from
> a list but from a Java Stream which will have lesser memory footprint. This
> feature however can be used only with Java 8 or later because streams were
> introduced only in Java 8.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)