Apache Camel FTP using Simple to select directories when polled

I would like to be able to get with FTP, which changes the directory name every hour. I have the logic to find out what is the name of the new directory, and it can be passed using Simple, but I'm not sure how to use FTP options for this.

I tried using 2.12.1, but this did not work:

ftp://myUser@host/${date:now:yyyyMMddHHmm}?password=secret&delay=60s

Is it correct? Thanks!

+4
source share
2 answers

I finally got it working, the trick set useList to false. The final uri is as follows:

ftp://user@host/fixedPath?password=secret&useList=false&fileName=${date:now:yyyy_MM_dd}/myFile.zip

Thanks for helping the guys!

+1
source

Try

ftp://myUser@host/?fileName=${date:now:yyyyMMddHHmm}&password=secret&delay=60s

, ftp/file . . + - .

+1

All Articles