use .nextcloudsync.log to perform file monitoring test at start

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
Matthieu Gallien 2022-12-13 11:06:53 +01:00 committed by Matthieu Gallien
parent 051db4a7ef
commit a8025dc06a
2 changed files with 4 additions and 1 deletions

View file

@ -151,6 +151,9 @@ static CSYNC_EXCLUDE_TYPE _csync_excluded_common(const QString &path, bool exclu
if (bname.startsWith(QLatin1String(".owncloudsync.log"), Qt::CaseInsensitive)) { // ".owncloudsync.log*"
return CSYNC_FILE_SILENTLY_EXCLUDED;
}
if (bname.startsWith(QLatin1String(".nextcloudsync.log"), Qt::CaseInsensitive)) { // ".nextcloudsync.log*"
return CSYNC_FILE_SILENTLY_EXCLUDED;
}
}
// check the strlen and ignore the file if its name is longer than 254 chars.

View file

@ -1284,7 +1284,7 @@ void Folder::registerFolderWatcher()
connect(_folderWatcher.data(), &FolderWatcher::becameUnreliable,
this, &Folder::slotWatcherUnreliable);
_folderWatcher->init(path());
_folderWatcher->startNotificatonTest(path() + QLatin1String(".owncloudsync.log"));
_folderWatcher->startNotificatonTest(path() + QLatin1String(".nextcloudsync.log"));
}
bool Folder::virtualFilesEnabled() const