We have fixed an issue with the starting paths being absolute in the file component. http://camel.apache.org/camel-270-release.html
That fix will make into Camel 2.7. On Wed, Feb 16, 2011 at 10:57 PM, swwyatt <[email protected]> wrote: > > I have configured a route with a file consumer like the one below: > > my.properties: > MY_PATH=c\:\\\\temp\\import > MY_SAVE_PATH=c\:\\\\temp\\import\\save > > <camel:from > uri="file:{{MY_PATH}}?recursive=true&move={{MY_SAVE_PATH}}/${file:name}"></camel:from> > > On the disk I have a file: > > c:\\temp\import\a\01\1.xml > > I expected the file to be moved to: > > c:\\temp\import\save\a\01\1.xml > > I got the exception: > > 15:33:37 ERROR [pdvwimport] GenericFileOnCompletion - Caused by: > [org.apache.camel.component.file.GenericFileOperationFailedException - > Cannot create directory: c:\temp\import\save\c:\temp\import\a\01 (could be > because of denied permissions)] > > Is this the correct behavior? From the File component/File language > documentation, using 'file:name' should refer to a file named 'a\01\1.xml' > in either relative or absolute cases, but results are otherwise. > -- > View this message in context: > http://camel.465427.n5.nabble.com/File-component-move-option-tp3388470p3388470.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
