Its working according to the documentation. try ../done to make done a sibling to staging.
*Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39 <http://www.linkedin.com/pub/robert-simmons/40/852/a39>* On Wed, Dec 11, 2013 at 12:22 AM, richie.rivi...@gmail.com < richie.rivi...@gmail.com> wrote: > Hi guys, > > I've got a question about preMove, move and moveFailed. PreMove seems to be > relative to the input directory and move seems to be relative to the > preMove > directory. For example if I do a.. > > from("file:{{dir.item.inbox}}?" > + "doneFileName={{filename.item.trigger}}&" > + "preMove={{dir.item.staging}}&" > + "move={{dir.item.done}}&" > + "moveFailed={{dir.item.error}}") > > where .... > > dir.item.inbox=src/inbox/items/ > dir.item.staging=staging > dir.item.done=.done > dir.item.error=.error > filename.item.trigger=NEWFILES.TRG > > when the file is processed successfully I get the original file moved into > a > done directory in the following folder structure... > > src>inbox>items>staging>.done > > I assume it is the same for error although I haven't been able to test this > yet. > > Is there anyway to make the paths not relative to each other. For example > is > t here someway I could specify.... > dir.item.inbox=src/inbox/items/ > dir.item.staging=src/inbox/items/staging > dir.item.done=src/inbox/items/done > dir.item.error=src/inbox/items/error > filename.item.trigger=NEWFILES.TRG > > I've actually tried this but the directory structure that was created was > nasty. lol > > thanks for your help. > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Apache-Camel-File-component-preMove-move-and-moveFailed-relative-rather-than-absolute-tp5744592.html > Sent from the Camel - Users mailing list archive at Nabble.com. >