hdfsExists2()
Supported by libMapRClient
for hadoop-2.x
Checks the file system directly (avoiding a client cache) to determine whether a given file or directory exists.
Signature
int hdfsExists2(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.