aftp_dir_close

The aftp_dir_close call cancels a directory listing that is in progress on the AFTP server or ends a directory listing on the AFTP server after a nonzero no_more_entries has been returned from an aftp_dir_read call. A connection to the AFTP server must be established before using this call. A directory listing on the AFTP server must be started by calling aftp_dir_open before issuing this call.

AFTP_ENTRY aftp_dir_close(
IN AFTP_HANDLE_TYPE
connection_id,
OUT AFTP_RETURN_CODE_TYPE AFTP_PTR
return_code
);

Parameters

connection_id
An AFTP connection object originally created with aftp_create.
return_code
The return code issued for this function. See AFTP Return Codes for the list of possible return codes.

Example

See aftp_dir_read for a complete example showing the related calls aftp_dir_open, aftp_dir_read, and aftp_dir_close.

Line Flows

None.