diff --git a/src/libs/utils/impl/Path.cpp b/src/libs/utils/impl/Path.cpp index 1d0b58ae..a2297a37 100644 --- a/src/libs/utils/impl/Path.cpp +++ b/src/libs/utils/impl/Path.cpp @@ -78,7 +78,7 @@ getLastWriteTime(const std::filesystem::path& file) return Wt::WDateTime::fromTime_t(sb.st_mtime); } -void +bool exploreFilesRecursive(const std::filesystem::path& directory, std::function cb) { std::error_code ec; @@ -87,7 +87,7 @@ exploreFilesRecursive(const std::filesystem::path& directory, std::function cb); +// returns false if aborted by user +bool exploreFilesRecursive(const std::filesystem::path& directory, std::function cb); namespace std {