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

QFileInfo work incorect

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Platform/s:
      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

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