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

QDirIterator ignores hidden files on mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 6.9.1
    • Core: I/O
    • None

    Description

      It seems that on mac, QDirIterator does not iterate hidden files.
      I tried using QDir::Hidden but it didn't help.

      Files hidden with chflags hidden <file> are not shown.
      Files hidden because their filename starts with a dot are not shown.

      The files are shown when iterating the same folder with QDirListing and its hidden flag.
      With the attached reproducer, I get following output:

      from QDirIterator:
      "/tmp/untitled1/testIterator/."
      "/tmp/untitled1/testIterator/.."
      "/tmp/untitled1/testIterator/notHiddenDir"
      "/tmp/untitled1/testIterator/notHidden.txt"
      from QDirListing with QDirListing::IteratorFlag::IncludeHidden flag:
      "/tmp/untitled1/testIterator/hidden.txt"
      "/tmp/untitled1/testIterator/notHiddenDir"
      "/tmp/untitled1/testIterator/notHidden.txt"
      "/tmp/untitled1/testIterator/.withDot"
      "/tmp/untitled1/testIterator/.withdot.txt"
      "/tmp/untitled1/testIterator/hiddenDir"
      

      Attachments

        1. Archive.zip
          2 kB
          Sami Shalayel
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes