MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / FullPresentablePathFor

Method FullPresentablePathFor

Goldleaf/include/fs/fs_Explorer.hpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 inline std::string FullPresentablePathFor(const std::string &path) const {
85 auto pres_cwd = this->GetPresentableCwd();
86 auto new_path = pres_cwd;
87 if(pres_cwd.substr(pres_cwd.length() - 1) != "/") {
88 new_path += "/";
89 }
90 new_path += path;
91 return new_path;
92 }
93
94 inline std::string AbsolutePresentablePathFor(const std::string &path) const {
95 auto new_path = this->disp_name + ":";

Callers 5

MakeFullPresentableMethod · 0.95
fsItems_DefaultKeyMethod · 0.80
fsItems_YMethod · 0.80
tickets_DefaultKeyMethod · 0.80
view_logs_DefaultKeyMethod · 0.80

Calls 1

GetPresentableCwdMethod · 0.95

Tested by

no test coverage detected