hdfs::native::hdfsListDirectory
[−]
[src]
pub unsafe extern fn hdfsListDirectory(fs: *const hdfsFS, path: *const c_char, numEntries: *mut c_int) -> *const hdfsFileInfo
Get list of files/directories for a given directory-path. hdfsFreeFileInfo should be called to deallocate memory.
Params
fs- The configured filesystem handle.path- The path of the directory.numEntries- Set to the number of files/directories in path.
Return
Returns a dynamically-allocated array of hdfsFileInfo objects; NULL on
error.