| 193 | #endif |
| 194 | |
| 195 | void remove(std::string_view path) override { |
| 196 | auto file = extractPath(path); |
| 197 | int32_t rc = std::remove(std::string(file).c_str()); |
| 198 | if (rc < 0 && std::filesystem::exists(file)) { |
| 199 | BOLT_USER_FAIL( |
| 200 | "Failed to delete file {} with errno {}", file, strerror(errno)); |
| 201 | } |
| 202 | VLOG(1) << "LocalFileSystem::remove " << path; |
| 203 | } |
| 204 | |
| 205 | void rename( |
| 206 | std::string_view oldPath, |