Просмотр исходного кода

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 лет назад
Родитель
Сommit
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())