ensure that the file to test monitoring is hidden
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 24 May 2023 14:37:45 +0000 (16:37 +0200)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Thu, 25 May 2023 08:59:35 +0000 (08:59 +0000)
we create a file inside the sync folder to test file system monitoring

ensure this file is hidden (i.e. has the proper hidden property)

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/folderwatcher.cpp

index 00ba227b7452215c420ebf3586ee29c6b14c4554..3d1f73cba3d478eeb0338fcb803ca0185122f34c 100644 (file)
@@ -133,6 +133,7 @@ void FolderWatcher::startNotificationTestWhenReady()
         QFile f(path);
         f.open(QIODevice::WriteOnly | QIODevice::Append);
     }
+    FileSystem::setFileHidden(path, true);
 
     QTimer::singleShot(5000, this, [this]() {
         if (!_testNotificationPath.isEmpty())