
File::Find::Rule::DirectoryEmpty - find empty directories recursively

use File::Find::Rule::DirectoryEmpty;
my @emptydirs = File::Find::Rule->directoryempty->in('/home/myself');
# another way..
my $o = new File::Find::Rule;
$o->directoryempty;
my @emptydirs = $o->in( $ENV{HOME} );

Matches only if it is an empty directory.

This module inherits File::Find::Rule. It lets you find empty directories recursively. Note that a directory with an empty directory inside it is not an empty directory.
Instead of reading full count of directory contents, we return false as soon as we match something other then . or .. This helps with speed.

This may not work on windows platforms. You're welcome to send in a patch for it.

Leo Charre leocharre at cpan dot org
