in reply to
How to tell if a Directory is Empty
Assuming one has write permission to its parent directory,
do {print "This Dir is Empty!"; mkdir $someDir"} if rmdir $someDir;
is a quick way to find this out as well.
Comment on
Re: How to tell if a Directory is Empty
Download
Code
In Section
Cool Uses for Perl