hdfsGetPathInfo()
Supported by libMapRClient for hadoop-2.x
Returns a dynamically-allocated
hdfsFileInfo
structure that contains information about
the given path.
Call hdfsFreeFileInfo()
when the
structure is no longer needed.
See hdfsFileInfo()
for information
about the information that this object contains.
Signature
hdfsFileInfo * hdfsGetPathInfo(hdfsFS fs, const char* path)
Parameters
Parameter | Description |
---|---|
fs | The file system handle. Obtain this by calling one of the
hdfsConnect() APIs. |
path | The path of the file. |
Return Value
Returns a dynamically-allocated
hdfsFileInfo
structure on success, and NULL on
error.
errno is set to EINVAL for invalid arguments and to EACCES for invalid access.