Support groupfolder scan

This commit is contained in:
2025-06-01 13:03:12 +02:00
parent 029d5716be
commit ba4cc3faa3
5 changed files with 30 additions and 17 deletions

View File

@@ -7,9 +7,9 @@
#include <set>
#include <sstream>
#include <mutex>
#include "locations.h"
#include "definitions.h"
std::vector<std::string> splitLogFile(const std::string& input, char delimiter);
std::vector<std::string> splitString(const std::string& input, char delimiter);
class userManager
{
@@ -19,9 +19,11 @@ private:
public:
static std::string getScanCommandFromUser(const std::string&);
void addUserFromLogLine(std::string &line)
{
addUser(splitLogFile(line, '|').at(USER_LOG_LOCATION));
addUser(splitString(line, '|').at(USER_LOG_LOCATION));
}
void addUser(std::string &user)