MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / getUserDataPath

Method getUserDataPath

Tactility/Source/app/AppPaths.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace tt::app {
16
17std::string AppPaths::getUserDataPath() const {
18 if (manifest.appLocation.isInternal()) {
19 return std::format("{}{}/user/app/{}", PARTITION_PREFIX, file::DATA_PARTITION_NAME, manifest.appId);
20 } else {
21 return std::format("{}/user/app/{}", file::getFirstPathSegment(manifest.appLocation.getPath()), manifest.appId);
22 }
23}
24
25std::string AppPaths::getUserDataPath(const std::string& childPath) const {
26 assert(!childPath.starts_with('/'));

Callers 2

Calls 3

getFirstPathSegmentFunction · 0.85
isInternalMethod · 0.80
getPathMethod · 0.80

Tested by

no test coverage detected