使用 camel ftp 组件的移动选项不起作用

Move option using camel ftp component not working

我正在使用 camel 版本 2.16.0.

我正在尝试通过 ftp camel 组件发送一些文件,并在完成传输后将它们移动到另一个位置。

我正在使用“ftp://127.0.0.1/folder1/folder2?username=dev_user&passiveMode=true&password=dev_password&maximumReconnectAttempts=500&reconnectDelay=300000&move=folder3”路线。

我的文件已正确发送,但没有像我预期的那样在完成传输后从 Folder2 移动到 Folder3。

有什么想法吗?

谢谢! 马塞洛

Move -option 只对消费者(from)存在,对生产者(to)不存在。 Camel的FTP-component使用了File2-component,请研究API http://camel.apache.org/file2.html

如果您使用的是消费者,那么它可能是例如权限问题,你应该研究日志。