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

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

XMLWordPrintable

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

      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"))

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes