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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
David Tarr created NET-665:
------------------------------

             Summary: 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


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}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)