use of org.apache.knox.gateway.shell.hdfs.Status.Response in project knox by apache.
the class WebHDFSCommand method exists.
private boolean exists(KnoxSession session, String path) {
boolean rc = false;
try {
Response response = Hdfs.status(session).file(path).now();
rc = response.exists();
} catch (KnoxShellException e) {
// NOP
}
return rc;
}
Aggregations