[nostalgia] Fix ignored ox::Error's

This commit is contained in:
2020-10-11 19:04:10 -05:00
parent a725369311
commit c671c8bd66
5 changed files with 19 additions and 19 deletions
+2 -2
View File
@@ -28,12 +28,12 @@ OxFSFile::OxFSFile(PassThroughFS *fs, QString path, OxFSFile *parentItem) {
auto stat = fs->stat(static_cast<const char*>(m_path.toUtf8()));
if (!stat.error) {
if (stat.value.fileType == FileType_Directory) {
fs->ls(m_path.toUtf8(), [&ls](const char *name, ox::InodeId_t) {
oxThrowError(fs->ls(m_path.toUtf8(), [&ls](const char *name, ox::InodeId_t) {
if (name[0] != '.') {
ls.push_back(name);
}
return OxError(0);
});
}));
std::sort(ls.begin(), ls.end());
}
auto p = m_path;