Thanks for the tip. It would probably be good enough although I also want to move the empty files to a dedicated directory to clearly show what took place.
Do you know f the syntax for checking the file length has changed in Simple language (or rather File language)? Looking at the documentation I can't see that I'm doing anything wrong. /Bengt 2013/8/14 Claus Ibsen <[email protected]> > See also the readLockMinLength option > > On Wed, Aug 14, 2013 at 4:26 PM, Bengt Rodehav <[email protected]> wrote: > > I have recently upgraded Camel to version 2.11.0. In my file transfer > > services I have used a predicate together with interceptors to avoid > > transferring empty files but instead move them into a subfolder called > > "skipped". However, this has stopped working. My predicate looks like > this: > > > > *Predicate emptyFile = > > PredicateBuilder.toPredicate(SimpleLanguage.simple("${file:length} == > 0")); > > * > > > > I'm not exactly sure in what version this functionality broke but I'm > sure > > it worked in version 2.7.1. > > > > Is there a better way to do this in Camel 2.11.0? > > > > /Bengt > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: [email protected] > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen >
