| 194 | runfilesPath.normalize(); |
| 195 | auto fallback = loadFileFromAbsolutePath(runfilesPath); |
| 196 | if (fallback) { |
| 197 | return fallback; |
| 198 | } |
| 199 | // cwd might be runfiles/valdi (package dir) already |
| 200 | Valdi::Path pkgPath(cwdBuffer); |
| 201 | pkgPath.append(path); |
| 202 | pkgPath.normalize(); |
| 203 | fallback = loadFileFromAbsolutePath(pkgPath); |
| 204 | if (fallback) { |
| 205 | return fallback; |
| 206 | } |
| 207 | } |
| 208 | return result; |
| 209 | } |
| 210 | |
| 211 | Valdi::FlatMap<Valdi::Path, Valdi::BytesView> readDirectory(const std::string& path) { |
nothing calls this directly
no test coverage detected