| 83 | } |
| 84 | |
| 85 | std::string Explorer::GetPresentableCwd() const { |
| 86 | if(this->cwd == (this->mnt_name + ":/")) { |
| 87 | return this->disp_name + ":/"; |
| 88 | } |
| 89 | const auto mnt_root_size = this->mnt_name.length() + 2; |
| 90 | return this->disp_name + ":/" + this->cwd.substr(mnt_root_size); |
| 91 | } |
| 92 | |
| 93 | void Explorer::CopyFile(const std::string &path, const std::string &new_path) { |
| 94 | const auto full_path = this->MakeFull(path); |
no outgoing calls
no test coverage detected