| 15 | namespace tt::app { |
| 16 | |
| 17 | std::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 | |
| 25 | std::string AppPaths::getUserDataPath(const std::string& childPath) const { |
| 26 | assert(!childPath.starts_with('/')); |
no test coverage detected