use .nextcloudsync.log to perform file monitoring test at start
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Tue, 13 Dec 2022 10:06:53 +0000 (11:06 +0100)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Thu, 15 Dec 2022 10:11:20 +0000 (11:11 +0100)
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/csync/csync_exclude.cpp
src/gui/folder.cpp

index 4e9c9660df1cc7844f28ea595ac9b616fecc95cc..3430dae34fb4bad92c69dbf6981afc1945fd11f6 100644 (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.
index 3dc9b98cd89b62c1d4c2b4d56ce7a75d4d8f841a..3abb319ae835b414e8f7ed7347abb1ef34f0d918 100644 (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