[nostalgia/studio] Make OxFS tree view hide files starting with .

This commit is contained in:
Gary Talent 2020-06-16 05:01:49 -05:00
parent df96407669
commit dae719f78a

View File

@ -29,7 +29,9 @@ OxFSFile::OxFSFile(PassThroughFS *fs, QString path, OxFSFile *parentItem) {
if (!stat.error) { if (!stat.error) {
if (stat.value.fileType == FileType_Directory) { if (stat.value.fileType == FileType_Directory) {
fs->ls(m_path.toUtf8(), [&ls](const char *name, ox::InodeId_t) { fs->ls(m_path.toUtf8(), [&ls](const char *name, ox::InodeId_t) {
ls.push_back(name); if (name[0] != '.') {
ls.push_back(name);
}
return OxError(0); return OxError(0);
}); });
std::sort(ls.begin(), ls.end()); std::sort(ls.begin(), ls.end());