A couple small indexer tweaks and fixes.

This commit is contained in:
casey langen 2020-07-26 13:42:44 -07:00
parent ae1b2ee233
commit 2df97b1fff
3 changed files with 7 additions and 2 deletions

View File

@ -191,6 +191,7 @@ namespace musik { namespace core { namespace sdk { namespace fs {
struct stat info = {0};
if (stat(fn.c_str(), &info) < 0) {
closedir(dir);
return;
}
if (S_ISDIR(info.st_mode)) {

View File

@ -96,8 +96,10 @@ ScanResult GmeIndexerSource::Scan(
};
for (auto& path : this->paths) {
if (!this->interrupt) {
fs::scanDirectory(std::string(path), checkFile, checkInterrupt);
}
}
indexer->CommitProgress(this, this->filesIndexed);

View File

@ -101,8 +101,10 @@ ScanResult OpenMptIndexerSource::Scan(
};
for (auto& path : this->paths) {
if (!this->interrupt) {
fs::scanDirectory(std::string(path), checkFile, checkInterrupt);
}
}
indexer->CommitProgress(this, this->filesIndexed);