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

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

XMLWordPrintable

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

      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"

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes