*/
#include "discoveryphase.h"
+#include "configfile.h"
#include "discovery.h"
#include "helpers.h"
#include "progressdispatcher.h"
return _syncOptions._newBigFolderSizeLimit > 0 && _syncOptions._vfs->mode() == Vfs::Off;
}
+bool DiscoveryPhase::notifyExistingFolderOverLimit() const
+{
+ return activeFolderSizeLimit() && ConfigFile().notifyExistingFoldersOverLimit();
+}
+
void DiscoveryPhase::checkFolderSizeLimit(const QString &path, const std::function<void(bool)> completionCallback)
{
if (!activeFolderSizeLimit()) {
void DiscoveryPhase::checkSelectiveSyncExistingFolder(const QString &path)
{
- // TODO: Check for setting to obey big folder sync
// If no size limit is enforced, or if is in whitelist (explicitly allowed) or in blacklist (explicitly disallowed), do nothing.
- if (!activeFolderSizeLimit() || findPathInList(_selectiveSyncWhiteList, path) || findPathInList(_selectiveSyncBlackList, path)) {
+ if (!notifyExistingFolderOverLimit() || findPathInList(_selectiveSyncWhiteList, path) || findPathInList(_selectiveSyncBlackList, path)) {
return;
}
[[nodiscard]] bool isInSelectiveSyncBlackList(const QString &path) const;
[[nodiscard]] bool activeFolderSizeLimit() const;
-
+ [[nodiscard]] bool notifyExistingFolderOverLimit() const;
+
void checkFolderSizeLimit(const QString &path,
const std::function<void(bool)> callback);