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

QDir with UNC and relative paths does not always work on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • Some future release
    • 4.3.1
    • Core: I/O
    • None

    Description

      Getting a directory listing of the path "." with the current directory being a Windows network share (\\server\foo\bar) does not work if the application is executed in an UNC path (\\server\foo\bar).

      Converting the relative path to an absolute one first and passing that to QDir works fine:
      QDir(QDir(".").absolutePath()).entryList(QStringList("*.exe"))

      Attachments

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

        Activity

          People

            paeglis Gatis Paeglis
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes