| 129 | } |
| 130 | |
| 131 | void StdFileSystem::remove(const Path &path) |
| 132 | { |
| 133 | std::error_code ec; |
| 134 | |
| 135 | std::filesystem::remove_all(path, ec); |
| 136 | |
| 137 | if (ec) |
| 138 | { |
| 139 | throw std::runtime_error("Failed to remove file at path: " + path.string()); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | void StdFileSystem::set_external_storage_directory(const std::string &dir) |
| 144 | { |