| 401 | } |
| 402 | |
| 403 | Status SubTreeFileSystem::DeleteDirContents(const std::string& path, |
| 404 | bool missing_dir_ok) { |
| 405 | if (internal::IsEmptyPath(path)) { |
| 406 | return internal::InvalidDeleteDirContents(path); |
| 407 | } |
| 408 | ARROW_ASSIGN_OR_RAISE(auto real_path, PrependBase(path)); |
| 409 | return base_fs_->DeleteDirContents(real_path, missing_dir_ok); |
| 410 | } |
| 411 | |
| 412 | Status SubTreeFileSystem::DeleteRootDirContents() { |
| 413 | if (base_path_.empty()) { |
no test coverage detected