What causes "only export of files" limitation with Connect-SFTP in Pega Platform?

I do find in documentation in article “Secure file transfer in Pega” the warning:

“Currently, the SFTP connector in Pega Platform supports only securely exporting files from the Pega application.”

What limits Connect-FTP with SFTP that files cannot be pulled from an external SFTP server to Pega local file storage?

Is there any alternative Java code snippet available that provides that functionality of PULLING files with SFTP to Pega from Pega (i.e. Activity with Java step)?

Ideally that shall work in Pega Cloud context, where Cloud File Storage is used and where with Kubernetes exists no local file system.

@moram The Connect-FTP method in Pega Platform is designed to securely export files from the Pega application to an external SFTP server. It does not support the reverse process of downloading files from an external SFTP server to the Pega application. This limitation is due to the design of the Connect-FTP method. As for an alternative Java code snippet, Pega does not provide out-of-the-box Java code for this purpose. However, a custom Java function can be used to download the files, as mentioned in the context. Please note that using custom Java code is not recommended and should be replaced with an out-of-the-box mechanism when available. In the Pega Cloud context, where Cloud File Storage is used and there is no local file system due to Kubernetes, the recommended approach is to use Pega Cloud SFTP service for secure file transfers.

:warning: This is a GenAI-powered tool. All generated answers require validation against the provided references.

Secure file transfer in Pega

What is the Pega OOTB mechanism to download a file from a remote SFTP serv

Using Pega Cloud SFTP service