commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (IO-170) Scalable Iterator for files, better than FileUtils.iterateFiles
Date Tue, 08 Oct 2019 01:50:00 GMT

     [ https://issues.apache.org/jira/browse/IO-170?focusedWorklogId=324801&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-324801
]

ASF GitHub Bot logged work on IO-170:
-------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Oct/19 01:49
            Start Date: 08/Oct/19 01:49
    Worklog Time Spent: 10m 
      Work Description: detinho commented on issue #67: IO-170: Scalable Iterator for files,
better than FileUtils.iterateFiles
URL: https://github.com/apache/commons-io/pull/67#issuecomment-539277391
 
 
   @garydgregory in that case it would be Files.walkTree, as Files.walk was introduced on
Java 1.8.
   Regarding Files.walkTree, it would be possible to use it instead FileUtils.iterateFiles,
but not with an Iterator pattern.
   I think it would be nice to update the documentation too, so users can be aware of Files.walk
in case they are using Java 1.8 already and use the Stream pattern, what do you think?
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 324801)
    Remaining Estimate: 4.5h  (was: 4h 40m)
            Time Spent: 0.5h  (was: 20m)

> Scalable Iterator for files, better than FileUtils.iterateFiles
> ---------------------------------------------------------------
>
>                 Key: IO-170
>                 URL: https://issues.apache.org/jira/browse/IO-170
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 1.4
>         Environment: generic file systems
>            Reporter: Damian Noseda
>            Priority: Minor
>             Fix For: 3.x
>
>         Attachments: real_iterators.patch
>
>   Original Estimate: 5h
>          Time Spent: 0.5h
>  Remaining Estimate: 4.5h
>
> Improve the way that iterateFiles generate an iterator. The current way it not scale.
It's try to add all files in a list and then return the iterator of that list. A better way
it would be create an customize Iterator<File> with a stack of arrays of File to go
up and down in the directory tree.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message