Details
-
Suggestion
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
4.5.2
-
None
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.