pub unsafe extern "C" fn aws_directory_delete(
dir_path: *const aws_string,
recursive: bool
) -> c_int
Expand description
Deletes a directory. If the directory is not empty, this will fail unless the recursive parameter is set to true. If recursive is true then the entire directory and all of its contents will be deleted. If it is set to false, the directory will be deleted only if it is empty. Returns AWS_OP_SUCCESS if the operation was successful. Otherwise, aws_last_error() will contain the error that occurred. If the directory doesn’t exist, AWS_OP_SUCCESS is still returned.