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

Method getLocalFilePath

source/ui/data/globalSettings.cpp:1068–1075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1066}
1067
1068BString FileSystemZip::getLocalFilePath() const {
1069 int pos = this->filePath.lastIndexOf('/');
1070 if (pos == -1) {
1071 return B(""); // :TODO: error msg?
1072 }
1073 BString fileName = this->filePath.substr(pos + 1);
1074 return GlobalSettings::getFileSystemFolder().stringByApppendingPath(fileName);
1075}

Callers 1

downloadFileSystemMethod · 0.80

Calls 4

BFunction · 0.85
lastIndexOfMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected