[jira] [Commented] (IO-531) make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, IOFileFilter, IOFileFilter)
[ https://issues.apache.org/jira/browse/IO-531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15977959#comment-15977959 ] Hao Liu commented on IO-531: Thanks for all your quick replies and comments. As Sebb said maybe it's unnecessary. And I think Sebb's suggestion is a very good workaround for me. I will use "FileUtils.listFiles(directory, TrueFileFilter.TRUE, new NotFileFilter(new NameFileFilter("se")))" instead of my initial implementation. Thank you. BR, Hao Liu. > make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, > IOFileFilter, IOFileFilter) > - > > Key: IO-531 > URL: https://issues.apache.org/jira/browse/IO-531 > Project: Commons IO > Issue Type: Improvement > Components: Utilities >Affects Versions: 2.5 >Reporter: Hao Liu > Attachments: Commons IOIO-531.pdf > > > when I only want to filter the directories, it should be better to allow me > to set the second parameter to null or I have to implement the > org.apache.commons.io.filefilter.IOFileFilter interface with nothing > functionally task to do. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (IO-531) make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, IOFileFilter, IOFileFilter)
[ https://issues.apache.org/jira/browse/IO-531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hao Liu updated IO-531: --- Attachment: Commons IOIO-531.pdf > make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, > IOFileFilter, IOFileFilter) > - > > Key: IO-531 > URL: https://issues.apache.org/jira/browse/IO-531 > Project: Commons IO > Issue Type: Improvement > Components: Utilities >Affects Versions: 2.5 >Reporter: Hao Liu > Attachments: Commons IOIO-531.pdf > > > when I only want to filter the directories, it should be better to allow me > to set the second parameter to null or I have to implement the > org.apache.commons.io.filefilter.IOFileFilter interface with nothing > functionally task to do. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (IO-531) make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, IOFileFilter, IOFileFilter)
[ https://issues.apache.org/jira/browse/IO-531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15976203#comment-15976203 ] Hao Liu commented on IO-531: Hi, Sebb, I have attached a file. hope it could make myself clear. Thank you. BR, Hao Liu. > make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, > IOFileFilter, IOFileFilter) > - > > Key: IO-531 > URL: https://issues.apache.org/jira/browse/IO-531 > Project: Commons IO > Issue Type: Improvement > Components: Utilities >Affects Versions: 2.5 >Reporter: Hao Liu > Attachments: Commons IOIO-531.pdf > > > when I only want to filter the directories, it should be better to allow me > to set the second parameter to null or I have to implement the > org.apache.commons.io.filefilter.IOFileFilter interface with nothing > functionally task to do. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Created] (IO-531) make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, IOFileFilter, IOFileFilter)
Hao Liu created IO-531: -- Summary: make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, IOFileFilter, IOFileFilter) Key: IO-531 URL: https://issues.apache.org/jira/browse/IO-531 Project: Commons IO Issue Type: Improvement Components: Utilities Affects Versions: 2.5 Reporter: Hao Liu when I only want to filter the directories, it should be better to allow me to set the second parameter to null. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (IO-531) make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, IOFileFilter, IOFileFilter)
[ https://issues.apache.org/jira/browse/IO-531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hao Liu updated IO-531: --- Description: when I only want to filter the directories, it should be better to allow me to set the second parameter to null or I have to implement the org.apache.commons.io.filefilter.IOFileFilter interface with nothing functionally task to do. (was: when I only want to filter the directories, it should be better to allow me to set the second parameter to null.) > make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, > IOFileFilter, IOFileFilter) > - > > Key: IO-531 > URL: https://issues.apache.org/jira/browse/IO-531 > Project: Commons IO > Issue Type: Improvement > Components: Utilities >Affects Versions: 2.5 >Reporter: Hao Liu > > when I only want to filter the directories, it should be better to allow me > to set the second parameter to null or I have to implement the > org.apache.commons.io.filefilter.IOFileFilter interface with nothing > functionally task to do. -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Commented] (IO-531) make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, IOFileFilter, IOFileFilter)
[ https://issues.apache.org/jira/browse/IO-531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15974146#comment-15974146 ] Hao Liu commented on IO-531: I think that you misunderstood what I had described: I said the "Second Parameter" not the third one. and I did know that there are some "Empty Implementations", such as TrueFileFilter and FalseFileFilter. however, I think it's not a very elegant solution. as my understanding: 1, the second parameter is used for filtering files; 2, the third parameter is used for filtering directories. When I only want to filter the subdirecotries, I just want to impement the third parameter, I didn't want to do anything about the second paramter. In one word: When I only want to filter the subdirecotries, I hope that I can just set the second parameter to null and only focus on the implementation of the third parameter. I think this would be much more easy to use for the users. BR, Hao Liu. > make it more esay-to-use: org.apache.commons.io.FileUtils.listFiles(File, > IOFileFilter, IOFileFilter) > - > > Key: IO-531 > URL: https://issues.apache.org/jira/browse/IO-531 > Project: Commons IO > Issue Type: Improvement > Components: Utilities >Affects Versions: 2.5 >Reporter: Hao Liu > > when I only want to filter the directories, it should be better to allow me > to set the second parameter to null or I have to implement the > org.apache.commons.io.filefilter.IOFileFilter interface with nothing > functionally task to do. -- This message was sent by Atlassian JIRA (v6.3.15#6346)