| 69 | } |
| 70 | |
| 71 | std::vector<std::string> Explorer::GetContents() { |
| 72 | auto dirs = this->GetDirectories(this->cwd); |
| 73 | auto files = this->GetFiles(this->cwd); |
| 74 | |
| 75 | if(!dirs.empty()) { |
| 76 | std::sort(dirs.begin(), dirs.end(), InternalCaseCompare); |
| 77 | } |
| 78 | if(!files.empty()) { |
| 79 | std::sort(files.begin(), files.end(), InternalCaseCompare); |
| 80 | dirs.insert(dirs.end(), files.begin(), files.end()); |
| 81 | } |
| 82 | return dirs; |
| 83 | } |
| 84 | |
| 85 | std::string Explorer::GetPresentableCwd() const { |
| 86 | if(this->cwd == (this->mnt_name + ":/")) { |
no test coverage detected