MCPcopy Create free account
hub / github.com/apple-oss-distributions/dyld / addFile

Method addFile

cache_builder/BuilderFileSystem.cpp:40–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void SymlinkResolver::addFile(Diagnostics& diags, std::string path) {
41 if (path.front() != '/') {
42 diags.error("Path must start with '/'");
43 return;
44 }
45 if (symlinks.find(path) != symlinks.end()) {
46 diags.error("Cannot add regular file as it is already a symlink");
47 return;
48 }
49 filePaths.insert(path);
50}
51
52void SymlinkResolver::addSymlink(Diagnostics& diags, std::string fromPath, std::string toPath) {
53 normalizePath(fromPath);

Callers 3

addFileImplFunction · 0.45
addHostSimDylibFunction · 0.45
runBuildersFunction · 0.45

Calls 8

frontMethod · 0.80
errorMethod · 0.45
findMethod · 0.45
endMethod · 0.45
insertMethod · 0.45
sizeMethod · 0.45
hasErrorMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected