MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / normalizePath

Function normalizePath

src/Abyss/FileSystem/Direct.cpp:11–14  ·  view source on GitHub ↗

Removes / if prepended, and turns lower case

Source from the content-addressed store, hash-verified

9
10// Removes / if prepended, and turns lower case
11static std::string normalizePath(std::string_view path) {
12 absl::ConsumePrefix(&path, "/");
13 return absl::AsciiStrToLower(path);
14}
15
16Direct::Direct(const std::filesystem::path &path) : _basePath(path) {
17 for (const auto &entry : std::filesystem::recursive_directory_iterator(_basePath)) {

Callers 2

hasMethod · 0.85
loadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected