hdfsExists()
Supported by libMapRClient
for hadoop-2.x
Checks whether a given directory or file exists on the file system.
Signature
int hdfsExists(hdfsFS fs, const char* path)
Parameters
Parameter | Description |
---|---|
fs | The file system handle. Obtain this handle with one of the
hdfsConnect() APIs. |
path | The directory or file to check the existence of. |
Return Value
Returns 0 if the directory or file exists, -1 on error.
Check errno for error codes and meanings.