line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bio::MLST::Validate::File; |
2
|
|
|
|
|
|
|
# ABSTRACT: Check to see if a file exists. For validation when classes have input files. |
3
|
|
|
|
|
|
|
$Bio::MLST::Validate::File::VERSION = '2.1.1630910'; |
4
|
|
|
|
|
|
|
|
5
|
18
|
|
|
18
|
|
87
|
use Moose; |
|
18
|
|
|
|
|
25
|
|
|
18
|
|
|
|
|
167
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub does_file_exist |
8
|
|
|
|
|
|
|
{ |
9
|
47
|
|
|
47
|
1
|
175
|
my($self, $file) = @_; |
10
|
47
|
50
|
|
|
|
1405
|
return 1 if(-e $file); |
11
|
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
return 0; |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
|
15
|
18
|
|
|
18
|
|
116609
|
no Moose; |
|
18
|
|
|
|
|
37
|
|
|
18
|
|
|
|
|
100
|
|
16
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__END__ |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=pod |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=encoding UTF-8 |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 NAME |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Bio::MLST::Validate::File - Check to see if a file exists. For validation when classes have input files. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 VERSION |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
version 2.1.1630910 |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=head1 SYNOPSIS |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
Check to see if a file exists. For validation when classes have input files. |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 METHODS |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head2 does_file_exist |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Check to see if a file exists. For validation when classes have input files. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 AUTHOR |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Andrew J. Page <ap13@sanger.ac.uk> |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
This software is Copyright (c) 2012 by Wellcome Trust Sanger Institute. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This is free software, licensed under: |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
The GNU General Public License, Version 3, June 2007 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=cut |