MCPcopy Create free account
hub / github.com/Snapchat/Valdi / readDirectory

Function readDirectory

valdi/test/utils/valdi_test_utils.cpp:196–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
211Valdi::FlatMap<Valdi::Path, Valdi::BytesView> readDirectory(const std::string& path) {

Callers

nothing calls this directly

Calls 2

loadFileFromAbsolutePathFunction · 0.85

Tested by

no test coverage detected