The filter should work while scanning for files - not after. eg if you configure the filter on the ftp endpoint. There is a bunch of options for filtering with include/exclude/ant/filter etc.
As ftp extends file you can find all the options in the file docs http://camel.apache.org/file2 On Thu, Nov 12, 2015 at 5:04 PM, Jack Frosch <jack.fro...@gmail.com> wrote: > Our application consumes files from a folder on a supplier's FTP server. > Unfortunately, the supplier uses the same folder for documents intended to be > consumed by other applications. We’d like to consume (i.e. read, then delete > or move) our files which can be identified by file name pattern, leaving the > other files we don’t care about in the folder. > > I was hoping a filter would do this, but it seems the filter gets applied > after the file is consumed. > > I’m sure I’m overlooking something, but am Googled out. :-) > > Is there a way to configure the FTP endpoint using Camel 2.15.1 to only > consume a subset of files from a folder on an FTP server? > > Thanks in advance! > > — > Jack > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2