libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ afc_read_directory()

afc_error_t afc_read_directory ( afc_client_t  client,
const char *  path,
char ***  directory_information 
)

Gets a directory listing of the directory requested.

Parameters
clientThe client to get a directory listing from.
pathThe directory for listing. (must be a fully-qualified path)
directory_informationA char list of files in the directory terminated by an empty string or NULL if there was an error. Free with afc_dictionary_free().
Returns
AFC_E_SUCCESS on success or an AFC_E_* error value.