| 112 | std::string const FWDIR_DEFAULT = "fwdir"; |
| 113 | |
| 114 | std::string |
| 115 | GetFrameworkDir(CoreBundleContext* ctx) |
| 116 | { |
| 117 | auto it = ctx->frameworkProperties.find(Constants::FRAMEWORK_STORAGE); |
| 118 | if (it == ctx->frameworkProperties.end() || it->second.Type() != typeid(std::string)) |
| 119 | { |
| 120 | return FWDIR_DEFAULT; |
| 121 | } |
| 122 | return any_cast<std::string>(it->second); |
| 123 | } |
| 124 | |
| 125 | std::string |
| 126 | GetPersistentStoragePath(CoreBundleContext* ctx, std::string const& leafDir, bool create) |
no test coverage detected