[ACCEPTED]-In VC++, how to check if a directory is empty?-visual-c++
You could use some methods like FindFirstFile and FindNextFile to 5 check if there are any files in the directory.
Also 4 see this:
If the directory is empty, FindFirstFile() will 3 only find the entry for the directory 2 itself (".") and FindNextFile() will 1 fail with ERROR_FILE_NOT_FOUND.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.