| 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); |