| 414 | } |
| 415 | |
| 416 | bool Exists(const std::string& path) { |
| 417 | // hdfsExists does not distinguish between RPC failure and the file not |
| 418 | // existing |
| 419 | int ret = driver_->Exists(fs_, path.c_str()); |
| 420 | return ret == 0; |
| 421 | } |
| 422 | |
| 423 | Status GetCapacity(int64_t* nbytes) { |
| 424 | tOffset ret = driver_->GetCapacity(fs_); |