| 280 | } |
| 281 | |
| 282 | fs::path ArgsManager::GetPathArg_(std::string arg, const fs::path& default_value) const |
| 283 | { |
| 284 | AssertLockHeld(cs_args); |
| 285 | const auto value = GetSetting_(arg); |
| 286 | if (value.isFalse()) return {}; |
| 287 | std::string path_str = SettingToString(value, ""); |
| 288 | if (path_str.empty()) return default_value; |
| 289 | fs::path result = fs::PathFromString(path_str).lexically_normal(); |
| 290 | // Remove trailing slash, if present. |
| 291 | return result.has_filename() ? result : result.parent_path(); |
| 292 | } |
| 293 | |
| 294 | fs::path ArgsManager::GetPathArg(std::string arg, const fs::path& default_value) const |
| 295 | { |
nothing calls this directly
no test coverage detected