| 168 | bool hasCssExtension(std::string_view fileName) { return checkFileExtension(fileName, ".css"); } |
| 169 | |
| 170 | std::string extractFolderPath(const std::string& filePath) { |
| 171 | const auto lastSlash = filePath.find_last_of('/'); |
| 172 | if (lastSlash == std::string::npos || lastSlash == 0) { |
| 173 | return "/"; |
| 174 | } |
| 175 | return filePath.substr(0, lastSlash); |
| 176 | } |
| 177 | |
| 178 | void sanitizePathComponentForFat32(const char* input, char* output, size_t maxLen) { |
| 179 | if (maxLen == 0) { |
no outgoing calls
no test coverage detected