Manager: Add index to dotfile iteration loop

This commit is contained in:
Riyyi
2021-09-23 16:01:19 +02:00
parent e4d90bf281
commit e7d1515fca
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ public:
static void setExcludePaths(const std::vector<ExcludePath>& excludePaths) { s_excludePaths = excludePaths; }
private:
void forEachDotfile(const std::vector<std::string>& targets, const std::function<void(std::filesystem::directory_entry, size_t)>& callback);
void forEachDotfile(const std::vector<std::string>& targets, const std::function<void(std::filesystem::directory_entry, size_t, size_t)>& callback);
bool filter(const std::filesystem::path& path);
bool include(const std::filesystem::path& path, const std::vector<std::string>& targets);