in reply to Quickly checking if a directory is empty

Might be of use.. File::Find::Rule::DirectoryEmpty

What you need to do is use readdir() but make sure you read one at at time, that is, not in array context

  • Comment on Re: Quickly checking if a directory is empty