Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-2331

QFileSystemWatcher on Windows generates debug output and emits directoryChanged signal endlessly or incorrectly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 4.4.0
    • Core: I/O
    • None

    Description

      Create a directory structure c:\test\folder1\folder2 and run the example below. Try to delete "folder1" in explorer. This is not possible, Explorer complains about Access Denied, and none of the folders will be deleted. However, QFileSystemWatcher will emit directoryChanged("c:\test\folder1\folder2") at least once, and in some cases even endlessly. Some times the folders end up being deleted - all in all the behavior is rather unpredictable.

      Half of the time, debug output "QFileSystemWatcher: FindNextChangeNotification failed (Access is denied.)" is generated.

      However it's a native Windows behaviour - these problems are there even with the example application from the MSDN.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            w00t Robin Burchell
            vhilshei Volker Hilsheimer
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes