in reply to Can File:Find be used to find empty dirs?
Consider using File::Find::Rule::DirectoryEmpty which inherits File::Find::Rule to recursively find empty directories:
use strict; use warnings; use File::Find::Rule::DirectoryEmpty; my $dir = 'C:/Temp/'; my @emptydirs = File::Find::Rule->directoryempty->in($dir); print "$_\n" for @emptydirs;
Hope this helps!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can File:Find be used to find empty dirs?
by PerlPlay (Novice) on Nov 20, 2013 at 13:29 UTC | |
by Kenosis (Priest) on Nov 20, 2013 at 20:32 UTC |