MCPcopy Create free account
hub / github.com/Axosoft/nsfw / getParentPath

Method getParentPath

src/linux/InotifyTree.cpp:192–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192std::string InotifyTree::getParentPath(const std::string &filePath) {
193 std::string directory;
194 uint32_t location = filePath.find_last_of("/");
195 directory = filePath.substr(0, location);
196 return directory;
197}
198
199void InotifyTree::updateExcludedPaths(const std::vector<std::string> &excludedPaths) {
200 std::vector<std::string> addedExcludedPaths;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected