Uploaded image for project: 'Qt Installer Framework'
  1. Qt Installer Framework
  2. QTIFW-3025

Provide Scripting API function to check if directory is empty

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.5.2
    • Scripting
    • None
    • All

    Description

      Currently, the only way I know how to check if a directory is empty is by using:

      QDesktopServices.findFiles(dir, "*.*") 

      However, this isn't ideal because it searches recursively and when the directory has many files + subfolders, it causes my installer to hang.
       
      I am currently interested in using this because I want to prevent my offline installer from installing into a non-empty directory.

      Attachments

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

        Activity

          People

            installerteam Installer Team
            cole Cole Richardson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes