MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ensureTrailingSep

Function ensureTrailingSep

engine/Poseidon/Core/Profile/ProfileManager.cpp:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11{
12namespace fs = std::filesystem;
13
14static std::string ensureTrailingSep(const std::string& path)
15{
16 if (path.empty())
17 return path;
18 if (path.back() != '/' && path.back() != '\\')
19 return path + '/';
20 return path;
21}
22
23static std::string usersDir(const std::string& basePath)

Callers 3

usersDirFunction · 0.85
EnumerateProfilesFunction · 0.85
GetProfileDirPathFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected