projects
/
scpubgit/DKit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
refactor Lib::FS
[scpubgit/DKit.git]
/
lib
/
DX
/
Lib
/
FS
/
Observation
/
FileContent.pm
diff --git
a/lib/DX/Lib/FS/Observation/FileContent.pm
b/lib/DX/Lib/FS/Observation/FileContent.pm
index
84bb263
..
f0e2bb4
100644
(file)
--- a/
lib/DX/Lib/FS/Observation/FileContent.pm
+++ b/
lib/DX/Lib/FS/Observation/FileContent.pm
@@
-7,6
+7,7
@@
has path => (is => 'ro', required => 1);
sub run {
my ($self) = @_;
+ return () unless -e $self->path;
my $data = do {
open my $fh, '<', $self->path or die "Couldn't open ${\$self->path}: $!";
local $/;