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

QFile, QFileInfo ::exists() Windows shortcut (.lnk) bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.7.4
    • Core: I/O
    • None
    • Windows 7 64bit, Qt 4.7.4, MSVC 2008

    Description

      By the Qt doc QFile and QFileInfo should handle the Windows shortcut files (.lnk) as ordinary files and should not behave like a symlink or alias, just as a normal file.

      In most cases it does, but exists() does not. If a Windows shortcut (.lnk) file points to a non-existing file both QFile's and QFileInfo's exists() method will return false for the .lnk file although the .lnk does exists only it's target does not.

      Attachments

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

        Activity

          People

            vhilshei Volker Hilsheimer
            viktor.benei Viktor Benei
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes