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

Method getFileNameFromNativePath

source/io/fs.cpp:272–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272BString Fs::getFileNameFromNativePath(const BString& path) {
273 int pos = path.lastIndexOf(Fs::nativePathSeperator);
274 if (pos==-1) {
275 return path;
276 }
277 return path.substr(pos+1);
278}
279
280bool Fs::doesNativePathExist(const BString& path) {
281 if (::access(path.c_str(), 0)!=-1) {

Callers

nothing calls this directly

Calls 2

lastIndexOfMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected