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

QFile::isFile() returns false for an ini file name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.13.2
    • Core: I/O
    • None
    • Windows 10 64 bit, MSVC 2017
    • Windows

    Description

      Given file name:

      C:/Application/Ini/Monitor_Log.ini

      produces wrong result for QFile::isFile() function. It returns false instead of true even if C:/Application/Ini/ path exists.

      QFileInfo::isDir() returns false as well (which is correct in this case):

       

      QFileInfo fi("C:/Application/Ini/Monitor_Log.ini");

      if (fi.isFile())... // here returns false - > WRONG

      if (fi.isDir())... // here returns *false - > CORRECT

       

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            ars.masiuk Ars Masiuk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes