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

QFileSystemWatcher loses track of symbolic link when file is moved.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P4: Low
    • None
    • 4.7.3
    • None
    • Qt 4.7.4 (64bit)
      uname -a = Linux euclid 2.6.32-32-generic #62-Ubuntu SMP Wed Apr 20 21:52:38 UTC 2011 x86_64 GNU/Linux

    Description

      under linux: I create a symbolic link to a file in another directory.

      ln -s ../remote/x x

      now code does: watcher->addPath( "./x" );

      mv ../remote/x ../remote/y
      mv ../remote/y ../remote/x
      edit ./x

      my fileSystemWatcher is no longer watching x. There are no errors or signals generated.

      if I do:
      cp ../remote/x ../remote/y
      mv ../remote/y ../remote/x
      edit ./x

      or:
      mv ./x ./y
      mv ./y ./x
      edit ./x

      it works fine.

      I know its a bit obscure, but it would be nice at least to know that my file is no longer being watched.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              roddavison Rod Davison
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes