【发布时间】:2021-09-16 08:54:22
【问题描述】:
我在 SFTP 服务器上通过此路径拥有 /test 目录 - /out/test (root directory -> /test)。我在我的应用程序的 SFTP URL 中设置了这个路径 - sftp://username@host.com:22/out/test?fileName=file.txt,但它会引发异常:
无法将目录更改为:test
我知道我的目录是根目录的子文件夹,但看起来 Apache Camel 忽略了 URL 中的这个路径(我的代码中的 DSL)并转到 /home/{username},结果在/home,因为这里不存在。也许我没有正确指定 URL(也许我应该这样做//)?
我尝试了这个解决方案,但没有帮助:
-
Changing directory from home to root in camel-ftp(
/../..没有帮助)
【问题讨论】:
标签: java apache-camel spring-camel camel-ftp