| 127 | } |
| 128 | |
| 129 | static bool isDirectChildPath(const std::string& entry, const std::string& parent) { |
| 130 | if (parent.empty()) return !entry.empty(); |
| 131 | return entry.length() > parent.length() |
| 132 | && entry.compare(0, parent.length(), parent) == 0 |
| 133 | && entry[parent.length()] == '/'; |
| 134 | } |
| 135 | |
| 136 | std::list<std::string> ZipFile::getDirEntries(const std::string& path, bool isFolder) { |
| 137 | if (!_file) return {}; |
no test coverage detected