use of org.apache.crail.rpc.RpcDeleteFile in project incubator-crail by apache.
the class CoreDataStore method delete.
public Upcoming<CrailNode> delete(String path, boolean recursive) throws Exception {
FileName name = new FileName(path);
if (CrailConstants.DEBUG) {
LOG.info("delete: name " + path + ", recursive " + recursive);
}
RpcFuture<RpcDeleteFile> fileRes = rpcConnection.removeFile(name, recursive);
return new DeleteNodeFuture(this, path, recursive, fileRes);
}
Aggregations