Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Cloud | Applications | Predefined Applications | Secure File Transfer Protocol (SFTP) | SFTP Predefined Operations | ls
 
ls
Retrieves the remote directory listing of the specified path. If path is not specified, the ls service retrieves the file listing of the current remote directory. The ls service also retrieves additional details such as permissions and ownership information.
Input Parameters
path
String Optional. Absolute or relative path of the remote directory. If no path is specified, the ls service retrieves the directory listing of the current remote directory.
You can use the wildcard characters asterisk (*) and question mark (?) after the last slash mark (/) to view all remote directories that match the specified path.
Output Parameters
returnCode
String Standard SFTP protocol return code.
returnMsg
String Text message describing the return code.
dirList
Document List of directories matching the pattern specified in the path parameter. This document has the following parameters:
fileName: String Specifies the name of the remote file. .
fileSize: String Specifies the size of the remote file.
permissions: String Specifies the access permission of the file (read, write, or execute).
lastAccessTime: String Specifies the time when the file was last accessed.
lastModifiedTime: String Specifies the time when the file was last modified.
uid: String Specifies the user ID of the file owner.
gid: String Specifies the group ID associated with the file.
longName: String Specifies the long name of the ls entry. It contains all the parameters separated by a space.