[][src]Function rust_hdfs::hdfsListDirectory

pub unsafe extern "C" fn hdfsListDirectory(
    fs: hdfsFS,
    path: *const c_char,
    numEntries: *mut c_int
) -> *mut hdfsFileInfo

hdfsListDirectory - Get list of files/directories for a given directory-path. hdfsFreeFileInfo should be called to deallocate memory. @param fs The configured filesystem handle. @param path The path of the directory. @param numEntries Set to the number of files/directories in path. @return Returns a dynamically-allocated array of hdfsFileInfo objects; NULL on error or empty directory. errno is set to non-zero on error or zero on success.