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

QFileInfo work incorect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.15.2
    • Core: I/O
    • None
    • Linux/X11

    Description

      QFileInfro work incorect witn the ~/ prefix

      For reproduse:

      Сreate a file with example.test in the homeDir.

      QFileInfo info("~/example.test")
      
      info.isFile() // should be return true, but will be return false.
      info.absaluteFilePath();; // shold be return "/home/user/example.test" but will be return "your/pwd/dir/~/example.test"
      

      It is very critical error. Fix please.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            endrii Andrei Yankovich
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes