Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
return it != folders.cend() ? *it : nullptr;
}
+void FolderMan::whitelistFolderPath(const QString &path)
+{
+ const auto folder = folderForPath(path);
+ if (!folder) {
+ return;
+ }
+
+ folder->whitelistPath(path);
+}
+
+void FolderMan::blacklistFolderPath(const QString &path)
+{
+ const auto folder = folderForPath(path);
+ if (!folder) {
+ return;
+ }
+
+ folder->blacklistPath(path);
+}
+
QStringList FolderMan::findFileInLocalFolders(const QString &relPath, const AccountPtr acc)
{
QStringList re;
/** Returns the folder which the file or directory stored in path is in */
Folder *folderForPath(const QString &path);
+ void whitelistFolderPath(const QString &path);
+ void blacklistFolderPath(const QString &path);
+
/**
* returns a list of local files that exist on the local harddisk for an
* incoming relative server path. The method checks with all existing sync