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

QFileSystemWatcher file locking problem.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 4.6.1
    • Core: I/O
    • None
    • Windows 7
      Qt 4 6 1

      Hey,

      I am watching a directory and all it's subdirectories and files using QFileSystemWatcher.

      I have a subfolder containing files:
      folder/
      folder/subfolder/
      folder/subfolder/test.txt

      when all of these files are watched, I cannot rename or delete subfolder unless i stop watching these directories and files.

      I have created a small demo that will demonstrate this:

      it relies on a folder "~/test" eg C:/Users/USER/test to exist.

      First it proves that it can create a sub folder, adds subfolder and a file and then rename the folder.

      Then it starts watching the files and directories using QFileSystemWatcher and tries the same procedure again.

      The process will fail when it tries to rename the folder.

      dennis

        1. ConsoleTest.zip
          638 kB
          Dennis Schaaf
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            dzyubenk Denis Dzyubenko (Inactive)
            dennisschaaf Dennis Schaaf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes