I want to copy all the files and subfolders from my local machine to sftp server, While I was able to transfer files inside the folder I couldn't transfer nested folder. The configure method of my custom route builder is as follows
@Override
public void configure() throws Exception {
from("file:data/inbox/?noop=true").
to("sftp://192.168.**.**:22/Documents?noop=true&username=******&password=******&preferredAuthentications=publickey,password");
}