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

Method GetContents

Goldleaf/source/fs/fs_Explorer.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 + ":/")) {

Callers 5

PrepareInstallationMethod · 0.80
ShowInstallDialogPageFunction · 0.80
StartInstallMethod · 0.80
UpdateElementsMethod · 0.80
GetUpdateInfoFunction · 0.80

Calls 2

GetDirectoriesMethod · 0.45
GetFilesMethod · 0.45

Tested by

no test coverage detected