CmdID / aws / aws transfer
aws transfer start-directory-listing
Retrieves a list of the contents of a directory from a remote SFTP server. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--connector-idThe unique identifier for the connector.--max-itemsAn optional parameter where you can specify the maximum number of file/directory names to retrieve.--output-directory-pathSpecifies the path (bucket and prefix) in Amazon S3 storage to store the results of the directory listing.--remote-directory-pathSpecifies the directory on the remote SFTP server for which you want to list its contents.