[nostalgia/studio] Make OxFS tree view hide files starting with .
This commit is contained in:
parent
df96407669
commit
dae719f78a
@ -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) {
|
||||||
|
if (name[0] != '.') {
|
||||||
ls.push_back(name);
|
ls.push_back(name);
|
||||||
|
}
|
||||||
return OxError(0);
|
return OxError(0);
|
||||||
});
|
});
|
||||||
std::sort(ls.begin(), ls.end());
|
std::sort(ls.begin(), ls.end());
|
||||||
|
Loading…
Reference in New Issue
Block a user