| 289 | } |
| 290 | |
| 291 | void DiskLocal::removeFileIfExists(const String & path) |
| 292 | { |
| 293 | auto fs_path = fs::path(disk_path) / path; |
| 294 | if (0 != unlink(fs_path.c_str()) && errno != ENOENT) |
| 295 | throwFromErrnoWithPath("Cannot unlink file " + fs_path.string(), fs_path, ErrorCodes::CANNOT_UNLINK); |
| 296 | } |
| 297 | |
| 298 | void DiskLocal::removeDirectory(const String & path) |
| 299 | { |
no test coverage detected