Try set stepwise=false http://camel.apache.org/ftp2
On Wed, Apr 6, 2016 at 3:38 PM, saverineni <suresh.averin...@gmail.com> wrote: > Hi Guys > > My camel route is trying to download and unzip a zip file from ftp server > (Filezilla). > > My Ftp configuration : > > Root directory(home directory) is set to c:\ > thg.ftp.incomingDir=/fileprocessor > thg.ftp.toDir=/unzip > > <camel:endpoint id="ZipFileFrom > uri="ftp://${thg.ftp.username}@${thg.ftp.server}/${thg.ftp.incomingDir}/?password=${thg.ftp.password}&initialDelay=25000&delay=120s&binary=true&reconnectDelay=60s&move=done&moveFailed=error" > /> > > <camel:endpoint id="Unzippedolder" > uri="ftp://${thg.ftp.username}@${thg.ftp.server}/${thg.ftp.toDir}/?password=${thg.ftp.password}&initialDelay=25000" > /> > > <camel:endpoint id="ileToProcess" > uri="ftp://${thg.ftp.username}@${thg.ftp.server}/${thg.ftp.toDir}/?password=${thg.ftp.password}&binary=true&delay=60s&move=done&moveFailed=error&localWorkDirectory=C:\ftp\ > /> > > > <camel:route id="unziponFTP"> > <camel:from ref="ZipFileFrom/> > <camel:unmarshal ref="zipFileDataFormat"/> > <camel:split streaming="true"> > <camel:simple>${body}</camel:simple> > <camel:to ref="Unzippedolder"/> > </camel:split> > </camel:route> > > Camel is able to unzip the zip file properly and i can see all the files as > well, but I am seeing the exception : > > unzipped folder name : Week54_09Apr-15Apr > > org.apache.camel.component.file.GenericFileOperationFailedException: File > operation failed: 550 CWD failed. "/unzip/Week54_09Apr-15Apr": directory not > found. > Cannot change directory to: Week54_09Apr-15Apr. Code: 550 > at > org.apache.camel.component.file.remote.FtpOperations.doChangeDirectory(FtpOperations.java:775) > > camel is trying to cwd in to the unzipped folder before it actually > unzipping it (found out this by placing breakpoints in the camel code) > > Any help would be much appreciated. > > Thanks > Suresh > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-ftp-550-directory-not-found-tp5780588.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2