| 42 | } |
| 43 | |
| 44 | std::string getChildPath(const std::string& basePath, const std::string& childPath) { |
| 45 | // Postfix with "/" when the current path isn't "/" |
| 46 | if (basePath.length() != 1) { |
| 47 | return basePath + "/" + childPath; |
| 48 | } else { |
| 49 | return "/" + childPath; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | int direntFilterDotEntries(const dirent* entry) { |
| 54 | return (strcmp(entry->d_name, "..") == 0 || strcmp(entry->d_name, ".") == 0) ? -1 : 0; |
no outgoing calls
no test coverage detected