From cc44c35aaaf92b9486ca37628f5bfedec20897c6 Mon Sep 17 00:00:00 2001 From: Sude Date: Sun, 15 Sep 2024 00:17:28 +0300 Subject: [PATCH] Don't consider blacklisted files to be orphaned --- src/downloader.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/downloader.cpp b/src/downloader.cpp index d743295..0ced5f9 100644 --- a/src/downloader.cpp +++ b/src/downloader.cpp @@ -1755,6 +1755,9 @@ void Downloader::checkOrphans() if (config.ignorelist.isBlacklisted(filepath.substr(pathlen))) { if (config.iMsgLevel >= MSGLEVEL_VERBOSE) std::cerr << "skipped ignorelisted file " << filepath << std::endl; + } else if (config.blacklist.isBlacklisted(filepath.substr(pathlen))) { + if (config.iMsgLevel >= MSGLEVEL_VERBOSE) + std::cerr << "skipped blacklisted file " << filepath << std::endl; } else { boost::regex expression(config.sOrphanRegex); // Limit to files matching the regex boost::match_results what;