diff --git a/src/reference/asciidoc/ftp.adoc b/src/reference/asciidoc/ftp.adoc index 9473e457cd..a737522527 100644 --- a/src/reference/asciidoc/ftp.adoc +++ b/src/reference/asciidoc/ftp.adoc @@ -888,7 +888,8 @@ public class FtpJavaApplication { @Bean @ServiceActivator(inputChannel = "ftpChannel") public MessageHandler handler() { - FtpOutboundGateway ftpOutboundGateway = new FtpOutboundGateway(ftpSessionFactory(), "ls"); + FtpOutboundGateway ftpOutboundGateway = + new FtpOutboundGateway(ftpSessionFactory(), "ls", "'my_remote_dir/'"); ftpOutboundGateway.setOutputChannelName("lsReplyChannel"); return ftpOutboundGateway; } diff --git a/src/reference/asciidoc/sftp.adoc b/src/reference/asciidoc/sftp.adoc index e6fd58cb4c..8950e29e85 100644 --- a/src/reference/asciidoc/sftp.adoc +++ b/src/reference/asciidoc/sftp.adoc @@ -976,7 +976,7 @@ public class SftpJavaApplication { @Bean @ServiceActivator(inputChannel = "sftpChannel") public MessageHandler handler() { - return new SftpOutboundGateway(ftpSessionFactory(), "ls"); + return new SftpOutboundGateway(ftpSessionFactory(), "ls", "'my_remote_dir/'"); } }