Manager: Change match() path argument type

Changed the path argument from directory_iterator to string, as nothing
in this function relied on the functionality.
This commit is contained in:
Riyyi
2022-03-08 00:18:04 +01:00
parent f4fe44ad02
commit 4cac25b5b3
3 changed files with 12 additions and 14 deletions
+1 -2
View File
@@ -30,8 +30,7 @@ public:
void pull(const std::vector<std::string>& targets = {});
void push(const std::vector<std::string>& targets = {});
bool match(const std::filesystem::directory_entry& path,
const std::vector<std::string>& patterns);
bool match(const std::string& path, const std::vector<std::string>& patterns);
private:
void pullOrPush(SyncType type, const std::vector<std::string>& targets = {});