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