I have the /test
directory by this path on the SFTP server - /out/test
(root directory
-> /test
). I set this path in the SFTP URL for my application - sftp://username@host.com:22/out/test?fileName=file.txt
, but it throws an exception:
Cannot change directory to: test
I know that my directory is a subfolder for the root directory, but looks like Apache Camel ignores this path in the URL (DSL in my code) and go to the /home/{username}
and as result can't find this folder in /home
, because it doesn't exist here. Maybe I didn't specify the URL correctly (maybe I should do something like this //
)?
I tried this solution, but it didn't help:
- Changing directory from home to root in camel-ftp (
/../..
didn't help)