On Wed, Apr 11, 2012 at 3:11 PM, tnk <[email protected]> wrote: > Hi, > I am using camel-ftp to download files from remote sftp server, using > idempotency (file), polling every 5 minutes, receiving max 50 files per poll > and disconnecting after each polling. > The problem is, that getting file list from sft server causes to high sftp > server load (there are a lot of files in folder). Is there any way to avoid > full directory listing and for example, to list only files modified in the > last 10 minutes? Renaming or deleting files is not an option... >
No I dont think so, as there is no API to ask the list command to filter by some predicate, such as name | timestamp etc. You are of course welcome to check the sftp library in use. Its this JSCH library camel-ftp uses for sftp http://www.jcraft.com/jsch/ > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-sftp-polling-and-file-listing-tp5632805p5632805.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
