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

QFileSystemWatcher file locking problem.

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes