| 263 | } |
| 264 | |
| 265 | void rmdir(std::string_view path) override { |
| 266 | std::error_code ec; |
| 267 | std::filesystem::remove_all(path, ec); |
| 268 | BOLT_CHECK_EQ( |
| 269 | 0, |
| 270 | ec.value(), |
| 271 | "Rmdir {} failed: {}, message: {}", |
| 272 | std::string(path), |
| 273 | ec.value(), |
| 274 | ec.message()); |
| 275 | VLOG(1) << "LocalFileSystem::rmdir " << path; |
| 276 | } |
| 277 | |
| 278 | static std::function<bool(std::string_view)> schemeMatcher() { |
| 279 | // Note: presto behavior is to prefix local paths with 'file:'. |