line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package File::Tasks::Remove; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# See POD at end for docs |
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
21
|
use strict; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
133
|
|
6
|
4
|
|
|
4
|
|
21
|
use base 'File::Tasks::Task'; |
|
4
|
|
|
|
|
6
|
|
|
4
|
|
|
|
|
388
|
|
7
|
4
|
|
|
4
|
|
75
|
use File::Flat (); |
|
4
|
|
|
|
|
14
|
|
|
4
|
|
|
|
|
76
|
|
8
|
|
|
|
|
|
|
|
9
|
4
|
|
|
4
|
|
17
|
use vars qw{$VERSION}; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
194
|
|
10
|
|
|
|
|
|
|
BEGIN { |
11
|
4
|
|
|
4
|
|
500
|
$VERSION = '0.07'; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
##################################################################### |
19
|
|
|
|
|
|
|
# File::Tasks::Task |
20
|
|
|
|
|
|
|
|
21
|
0
|
|
|
0
|
1
|
|
sub type { 'Remove' } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub test { |
24
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
25
|
0
|
0
|
|
|
|
|
File::Flat->isaFile( $self->path ) and File::Flat->canRemove( $self->path ); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub execute { |
29
|
0
|
|
|
0
|
1
|
|
File::Flat->remove( shift()->path ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__END__ |