line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Find::Rule::DirectoryEmpty; |
2
|
3
|
|
|
3
|
|
60165
|
use strict; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
779
|
|
3
|
3
|
|
|
3
|
|
189
|
use base 'File::Find::Rule'; |
|
3
|
|
|
|
|
169
|
|
|
3
|
|
|
|
|
4629
|
|
4
|
3
|
|
|
3
|
|
53689
|
use vars qw($VERSION); |
|
3
|
|
|
|
|
12
|
|
|
3
|
|
|
|
|
606
|
|
5
|
|
|
|
|
|
|
$VERSION = sprintf "%d.%02d", q$Revision: 1.11 $ =~ /(\d+)/g; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub File::Find::Rule::directoryempty { |
8
|
7
|
|
|
7
|
0
|
73549
|
my $self = shift->_force_object; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
$self->exec( |
12
|
|
|
|
|
|
|
sub { |
13
|
39
|
100
|
|
39
|
|
62911
|
opendir(DIR,+shift) or return; |
14
|
|
|
|
|
|
|
|
15
|
21
|
|
|
|
|
776
|
for( readdir DIR ){ |
16
|
34
|
100
|
|
|
|
182
|
if( !/^\.\.?$/ ){ |
17
|
8
|
|
|
|
|
289
|
closedir DIR; |
18
|
8
|
|
|
|
|
342
|
return 0; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
} |
21
|
13
|
|
|
|
|
179
|
closedir DIR; |
22
|
13
|
|
|
|
|
473
|
return 1; |
23
|
|
|
|
|
|
|
} |
24
|
7
|
|
|
|
|
464
|
); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |