MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / removeNonExistingPaths

Method removeNonExistingPaths

Source/Mogwai/AppData.cpp:76–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 }
75
76 void AppData::removeNonExistingPaths(std::vector<std::filesystem::path>& paths)
77 {
78 paths.erase(std::remove_if(paths.begin(), paths.end(), [](const auto& path) {
79 // Remove path if file does not exist.
80 if (!std::filesystem::exists(path)) return true;
81 auto canonicalPath = std::filesystem::canonical(path);
82 // Remove path if not in canonical form.
83 return path != canonicalPath;
84 }), paths.end());
85 }
86
87 void AppData::save()
88 {

Callers

nothing calls this directly

Calls 3

eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected