Module Smaws_Client_Transfer.StartDirectoryListing

Retrieves a list of the contents of a directory from a remote SFTP server. You specify the connector ID, the output path, and the remote directory path. You can also specify the optional MaxItems value to control the maximum number of items that are listed from the remote directory. This API returns a list of all files and directories in the remote directory (up to the maximum value), but does not return files or folders in sub-directories. That is, it only returns a list of files and directories one-level deep.

After you receive the listing file, you can provide the files that you want to transfer to the RetrieveFilePaths parameter of the StartFileTransfer API call.

The naming convention for the output file is

 {i connector-ID}-{i listing-ID}.json

. The output file contains the following information:

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `InternalServiceError of Types.internal_service_error | `InvalidRequestException of Types.invalid_request_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ServiceUnavailableException of Types.service_unavailable_exception | `ThrottlingException of Types.throttling_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.start_directory_listing_request -> (Types.start_directory_listing_response, [> Smaws_Lib.Protocols.AwsJson.error | `InternalServiceError of Types.internal_service_error | `InvalidRequestException of Types.invalid_request_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ServiceUnavailableException of Types.service_unavailable_exception | `ThrottlingException of Types.throttling_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.start_directory_listing_request -> (Types.start_directory_listing_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `InternalServiceError of Types.internal_service_error | `InvalidRequestException of Types.invalid_request_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ServiceUnavailableException of Types.service_unavailable_exception | `ThrottlingException of Types.throttling_exception ] * Smaws_Lib.Response.metadata) Stdlib.result