Procházet zdrojové kódy

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 před 2 roky
rodič
revize
907b35c650
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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())