瀏覽代碼

ensure that the file to test monitoring is hidden

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>
Matthieu Gallien 2 年之前
父節點
當前提交
907b35c650
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/gui/folderwatcher.cpp

+ 1 - 0
src/gui/folderwatcher.cpp

@@ -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())