From 55701541137069b92513dd31c0b90f3f435bccf4 Mon Sep 17 00:00:00 2001 From: Albert S Date: Tue, 30 Nov 2021 19:14:59 +0100 Subject: [PATCH] fscache: Fix starts_with() broken by b41a5f4e5b --- cache/fscache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/fscache.cpp b/cache/fscache.cpp index a643ca5..22a8240 100644 --- a/cache/fscache.cpp +++ b/cache/fscache.cpp @@ -46,7 +46,7 @@ void FsCache::removePrefix(std::string_view prefix) // TODO: lock dir for(auto &entry : std::filesystem::directory_iterator(std::filesystem::path{this->path})) { - if(std::string_view(entry.path().filename().c_str()).starts_with(prefix) == 0) + if(std::string_view(entry.path().filename().c_str()).starts_with(prefix)) { std::filesystem::remove_all(entry); }