MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / isDirectChildPath

Function isDirectChildPath

Source/3rdParty/Zip/ZipUtils.cpp:129–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129static 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
136std::list<std::string> ZipFile::getDirEntries(const std::string& path, bool isFolder) {
137 if (!_file) return {};

Callers 2

getDirEntriesMethod · 0.85
getAllFilesMethod · 0.85

Calls 3

emptyMethod · 0.45
lengthMethod · 0.45
compareMethod · 0.45

Tested by

no test coverage detected