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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.13.2
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:
      Windows 10 64 bit, MSVC 2017
    • Platform/s:
      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

            Assignee:
            thiago Thiago Macieira
            Reporter:
            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