The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

rizzi (12) [Avatar] Offline
#1
Hi
I am trying to use file component and after processing I am trying to move to folder .done creating a directory as follows
<camel:endpoint id="directory" >
uri="file://dropdown.folder}?move=.done/${date:now:yyyyMMddHHmmssSSS}.${file:name}" />
and this is throwing error

Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Cannot create directory: C:\dropdown.folder.done
ow:yyyyMMddHHmmssSSS.name (could be because of denied permissions)]
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot create directory: C:postcodeupload.done
ow:yyyyMMddHHmmssSSS.name (could be because of denied permissions)
any help?, thanks
davsclaus (413) [Avatar] Offline
#2
Re: cannot use file language expressions
Please use the Camel mailing list / forums for help on Camel.
http://camel.apache.org/support.html

This is for talking about the Camel book.

And you got a typo in your endpoint, there is a } in the uri, right after dropdown.folder