NAME
File::Find::Rule::DirectoryEmpty - find empty directories recursively
SYNOPSIS
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} );
Matching Rules
directoryempty()
Matches only if it is an empty directory.
DESCRIPTION
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.
NOTES
Instead of reading full count of directory contents, we return false as soon as we match something other then . or .. This helps with speed.
CAVEATS
This may not work on windows platforms. You're welcome to send in a patch for it.
AUTHOR
Leo Charre leocharre at cpan dot org