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

QDirIterator ignores QDir::Files if QDir::Hidden is set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.6.3
    • Core: I/O
    • None
    • Linux.

    Description

      Using a filter like QDir::Dirs|QDir::Hidden should only report hidden dirs. Instead hidden folders are listed, too.

      Run the attached app on a dir structure like the following:

      /tmp/trueg/1: directory
      /tmp/trueg/1/2: directory
      /tmp/trueg/1/2/5: directory
      /tmp/trueg/1/2/.4: directory
      /tmp/trueg/1/.4: directory
      /tmp/trueg/1/.4/1: empty
      /tmp/trueg/1/.h1: empty
      /tmp/trueg/1/.h2: empty

      and get this result:

      /tmp/trueg/1/2
      /tmp/trueg/1/2/5
      /tmp/trueg/1/2/.4
      /tmp/trueg/1/.4
      /tmp/trueg/1/.h1
      /tmp/trueg/1/.h2

      As you can see .h1 and .h2 are listed, too, although they are files.

      Attachments

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

        Activity

          People

            earthdomain Earth Domain (Inactive)
            trueg Sebastian Trueg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes