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

Add API in QFileInfo to check if a file is a special file

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.10.0 FF
    • None
    • Core: I/O
    • None
    • 9a83c2b88 (dev)

    Description

      The std::filesystem library lets you check whether a file is a special Socket, FIFO, Block or Character file (https://en.cppreference.com/w/cpp/filesystem/file_type) which is something that we seem to be lacking in QFileInfo.

      My proposal is to either add a new isSpecialFile() getter, or to add an enum QFileInfo::Type, together with a QFileInfo::Type type() const getter, to check the file type.

      Attachments

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

        Activity

          People

            ahmad.samir Ahmad Samir
            hurlevent Oliver Eftevaag
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes