You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "David Tarr (JIRA)" <ji...@apache.org> on 2019/02/08 16:57:00 UTC

[jira] [Updated] (NET-665) Support for multiple FTPFileFilters

     [ https://issues.apache.org/jira/browse/NET-665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Tarr updated NET-665:
---------------------------
    Description: 
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}}

  was:
FTPClient now has a method *listFiles *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}}


> 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
(v7.6.3#76005)