MCPcopy Create free account
hub / github.com/bcndev/bytecoin / normalize_folder

Function normalize_folder

src/platform/PathTools.cpp:139–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139std::string normalize_folder(const std::string &path) {
140 std::string result = path;
141#if defined(_WIN32)
142 while (result.size() > 0 && (result.back() == '/' || result.back() == '\\'))
143 result.pop_back();
144#else
145 while (result.size() > 0 && result.back() == '/')
146 result.pop_back();
147#endif
148 return result;
149}
150
151std::string expand_path(const std::string &path) {
152#ifdef __ANDROID__

Callers 4

mainFunction · 0.85
get_home_folderFunction · 0.85
get_app_data_folderFunction · 0.85
ConfigMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected