[
https://issues.apache.org/jira/browse/NET-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17249295#comment-17249295
]
Gary D. Gregory edited comment on NET-665 at 12/14/20, 8:52 PM:
----------------------------------------------------------------
Sounds reasonable but you can do the same with lambdas unless you are getting
your array elsewhere... but... you write filter out and the current logic is to
filter IN, IOW the files accepted by the filter are returned.
What does it mean when you have an array? Is it an OR or an AND? Might as well
use lambdas...
was (Author: garydgregory):
Sounds reasonable but you can do the same with lambdas unless you are getting
your array elsewhere... but... you write filter out and the current logic is to
filter IN, IOW the files accepted by the filter are returned.
What does it mean when you have an array? Is it an OR or and AND? Might as well
use lambdas...
> Support for multiple FTPFileFilters
> -----------------------------------
>
> Key: NET-665
> URL: https://issues.apache.org/jira/browse/NET-665
> Project: Commons Net
> Issue Type: New Feature
> Affects Versions: 3.6
> Reporter: David Tarr
> Priority: Major
>
> FTPClient now has a method
> [*listFiles*|https://commons.apache.org/proper/commons-net/apidocs/org/apache/commons/net/ftp/FTPClient.html#listFiles(java.lang.String,%20org.apache.commons.net.ftp.FTPFileFilter)]
> that allows a filter to filter out irrelevant files.
> I'd like to be able to pass multiple filters.
> This way I don't need to combine multiple FileFilters into one (cleaner code)
> Current:
> {{public FTPFile[] listFiles(String pathname, FTPFileFilter filter) throws
> IOException}}
> New:
> {{public FTPFile[] listFiles(String pathname, FTPFileFilter... filter) throws
> IOException}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)