MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getParentPath

Method getParentPath

source/io/fs.cpp:248–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248BString Fs::getParentPath(const BString& path) {
249 return path.substr(0, path.lastIndexOf('/', path.length()-2));
250}
251
252BString Fs::getNativeParentPath(const BString& path) {
253 int pos = path.lastIndexOf(Fs::nativePathSeperator);

Callers

nothing calls this directly

Calls 3

substrMethod · 0.80
lastIndexOfMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected