Skip to content

Commit

Permalink
Don't consider blacklisted files to be orphaned
Browse files Browse the repository at this point in the history
  • Loading branch information
Sude- committed Sep 14, 2024
1 parent 1ebbb81 commit cc44c35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/downloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string::const_iterator> what;
Expand Down

0 comments on commit cc44c35

Please sign in to comment.