The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.

SEE ALSO

File::Find::Rule

AUTHOR

Leo Charre leocharre at cpan dot org

COPYRIGHT

Copyright (c) 2009 Leo Charre. All rights reserved.

LICENSE

This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e., under the terms of the "Artistic License" or the "GNU General Public License".

DISCLAIMER

This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the "GNU General Public License" for more details.