SFTP Functions

Overview

Contains multiple Smart Services for interacting with a remote file server via SFTP, FTP, or SCP.  Using these services, an Appian application can be configured to send and receive files, folders, and metadata in a process.  Features support for zlib compression.

Key Features & Functionality

Smart Services included:

  • SFTP:
    • Send File Over SFTP
    • Receive File Over SFTP
    • Get Remote Folder Contents Over SFTP
    • Create Folder Over SFTP
    • Remove File Over SFTP
    • Receive Files In Folder Over
    • SFTP Rename File Over SFTP
  • SCP:
    • Send File Over SCP
    • Receive File Over SCP
  • FTP:
    • Send File Over FTP
    • Receive File Over FTP
    • Get Remote Folder Contents Over FTP
    • Receive Files In Folder Over FTP
    • Remove File Over FTP
    • Rename File Over FTP
  • FTPS
    • Get Remote Folder Contents Over FTPS
    • Receive File Over FTPS
    • Receive Files In Folder Over FTPS
    • Send File Over FTPS

Functions:

  • getfoldercontentsoverftp
  • getfoldercontentsoverftps
  • getfoldercontentsoversftp
  • All smart services in the package use Secure Credentials Store.
Anonymous
Parents
  • I am trying to get remote directory contents and facing one issue:

    It is returning all the directories name under that folder but it is not returning the file names. Is anyone else is also facing the same issue? Also one strange thing happened, with the same configuration, it was able to return the file name for once. Node is not braking or giving any error.

  • This function is simply running an ls command on the SFTP server.  Then it loops through each of the contents and runs the following logic:

    If content.getLongname() start with d then add to the directory array, otherwise add to file array (unless ".." or "." which are filtered out)

    Are you checking both of the output arrays (documents and files)?

    I would test with an SFTP client like WinSCP and see if you have the same issue.  It may be a user permission issue on those files.

Comment
  • This function is simply running an ls command on the SFTP server.  Then it loops through each of the contents and runs the following logic:

    If content.getLongname() start with d then add to the directory array, otherwise add to file array (unless ".." or "." which are filtered out)

    Are you checking both of the output arrays (documents and files)?

    I would test with an SFTP client like WinSCP and see if you have the same issue.  It may be a user permission issue on those files.

Children
No Data