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

QDir entryInfoList not filtering out symlinks when told to do so

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.2, 5.13.0 Alpha 1
    • 5.11.2
    • Core: I/O
    • None
    • Windows
    • 524a37f99d3d3115a1b371fd289044d90349a824 (qt/qtbase/5.12)

    Description

      // Get a list of files and directories without symLinks
      QDir dir("/temp");
      QFileInfoList infoList = dir.entryInfoList(QDir::Dirs | QDir::Files | QDir::Hidden | QDir::System | QDir::NoDotAndDotDot | QDir::NoSymLinks );
      
       for (auto const& info : infoList)
      {
         if (info.isSymLink())   {
            continue; // This should not happen but it does
         }
      
         // Process files and directories that are not symlinks
      }
      

      Attachments

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

        Activity

          People

            manordheim Mårten Nordheim
            DidgetMaster Andy Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes