Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
how to check whether a Dir is empty or not? thank you
QDir("/PATH/TO/DIR").count() Returns 2 for empty directories ("." and ".." are counted).
QDir("/PATH/TO/DIR").count()
@jsulm is this always true? in every platform include windows, mac, linux?
I tested on Linux and Windows: it returns 2 for empty directories. Since MacOS X is a UNIX like system it behaves same there for sure.
@jsulm thank you very much