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

Method NavigateBack

Goldleaf/source/fs/fs_Explorer.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 }
50
51 bool Explorer::NavigateBack() {
52 if(this->cwd == (this->mnt_name + ":/")) {
53 return false;
54 }
55 auto parent = this->cwd.substr(0, this->cwd.find_last_of("/\\"));
56 if(parent.substr(parent.length() - 1) == ":") {
57 parent += "/";
58 }
59 this->cwd = parent;
60 return true;
61 }
62
63 bool Explorer::NavigateForward(const std::string &path) {
64 const auto is_dir = this->IsDirectory(path);

Callers 1

GoBackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected