What you need to do is use readdir() but make sure you read one at at time, that is, not in array context
In reply to Re: Quickly checking if a directory is empty
by leocharre
in thread Quickly checking if a directory is empty
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |