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

QDir::cleanPath doesn't work with more complex relative paths

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.4.0
    • 4.5.0
    • Core: I/O
    • None
    • eedefa28bd66123f7787e989a4e4bccbb09f20bc

    Description

      Did:
      qDebug() << QDir::cleanPath( "subdir/subdir2/../../../app2/subdir/subdir2/something.exe" );

      Expected to see:
      ../app2/subdir/subdir2/something.exe

      Got instead:
      subdir/../../app2/subdir/subdir2/something.exe

      cleanPath( "subdir/../../app2" ) results in the correct: "../app2"

      Attachments

        Issue Links

          Activity

            People

              owolff Oliver Wolff
              mpejcoch Martin Pejcoch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: