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

QFileInfo exists returns wrong value for a lnk file if it starts from UNC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.7.0
    • 4.6.0, 4.6.1, 4.6.2, 4.6.3, 4.7.0
    • None
    • None
    • dbd16b3b6d2e6b030dd52e90eb3a38dc1a73c180

    Description

      #include <QFileInfo>
      #include <iostream>
      
      int main(int argc, char** argv)
      {
          QFileInfo info( "C:\\not_existing.lnk" );
          Q_ASSERT(info.exists());
      }
      

      Should produce an assert everywhere. But if this application was started from UNC(like \\server\myapplication.exe) function exists returns a true.

      Attachments

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

        Activity

          People

            albisser Zeno Albisser
            tjenssen Tim Jenssen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes