title: Spring Integration read files from dynamic multiple directories
body: <p>I am using <a href="http://docs.spring.io/spring-integration/reference/html/ftp.html" rel="nofollow noreferrer">this</a> and Spring forum. The process works if remote directory is set as "foo" but it doesn't accept expression (<code>foo/\*/*</code>) that can read any number of files/folders under "foo". Completely lost!</p>
  
  <pre><code>    @Bean
  public FtpInboundFileSynchronizer ftpInboundFileSynchronizer() {
      FtpInboundFileSynchronizer fileSynchronizer = new FtpInboundFileSynchronizer(ftpSessionFactory());
      fileSynchronizer.setDeleteRemoteFiles(false);
      fileSynchronizer.setRemoteDirectoryExpression(new LiteralExpression("foo/*/*"));
      fileSynchronizer.setFilter(new FtpSimplePatternFileListFilter("*.txt"));
      return fileSynchronizer;
  }
  </code></pre>
  
  <p>Is there a library that can provide programmatic control to deal with (s)ftp operations that work well with spring(-boot). The documentation is huge, and for a FTP beginner like me, I'm not getting anywhere soon.</p>