[
https://issues.apache.org/jira/browse/CAMEL-4602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221836#comment-13221836
]
Claus Ibsen commented on CAMEL-4602:
------------------------------------
Thanks Michael for the patch.
I went ahead and added a isDirectory method on GenericFile, this avoids any API
breakings in the filter interface.
> file/ftp consumer - The filter option should be able to work on directories
> as well
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-4602
> URL: https://issues.apache.org/jira/browse/CAMEL-4602
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.10.0
>
> Attachments: DirectoryFilter.patch
>
>
> See nabble
> http://camel.465427.n5.nabble.com/Copying-files-from-an-FTP-server-using-search-criteria-tp4882889p4882889.html
> By invoking the filter for directories, it allows end users to skip entire
> directories, which would make the polling faster. And no need to walk down
> unwanted directories.
> The logic need to apply for both file/ftp consumers, as well having unit
> tests to ensure it works.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira