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

[Qt5] QDir should provide an error code/string function for QDir::entryInfoList()

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • None
    • Core: I/O
    • None
    • All

      QDir::entryInfoList doc:

      Returns an empty list if the directory is unreadable, does not exist, or if nothing matches the specification.

      I need the error code/string (media failed, rights, FS corrupted, ...). The empty list doesn't explain the reason for failure.

      Please, add way to know if all have work, AND error code and errorString(). Thanks.
      It's very important in some case (right ok, but other error block the folder access).

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

            Unassigned Unassigned
            alpha_one_x86 BRULE Herman
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  There are no open Gerrit changes