Hi Colleagues,

We are using pollEnrich component to download files using SFTP protocol.
The problem is that on FTP server there is about 40 thousands of files.
Everytime we try to download a file it lists entire root folder and it
takes about 40 seconds.
I know there are parameters like useList (which is not relevant for SFTP
protocol) or stepwise (which controls traversing directories)  however from
my experience and also from the SftpConsumer class it looks like we cannot
avoid listing files using SFTP protocol.

Part of the SftpConsumer class:

protected boolean doPollDirectory(...)  {
...

if (isStepwise())  {
       files = operations.listFiles();
} else {
       files = operations.listFiles(dir);
}
...
}

It looks like it always lists which is not the case in FtpConsumer class
implementation.

Is there a possibility to avoid listing using SFTP protocol and only
download concrete file?
Why it behaves differently than in case of FTP and FTPS protocol?

Thank you
Regards
Kris
-- 

Pozdrawiam

Krzysztof Hołdanowicz

Reply via email to