aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Youri/Repository.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Youri/Repository.pm')
-rw-r--r--lib/Youri/Repository.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Youri/Repository.pm b/lib/Youri/Repository.pm
index 9e7ad01..4f28b5e 100644
--- a/lib/Youri/Repository.pm
+++ b/lib/Youri/Repository.pm
@@ -224,6 +224,8 @@ Get all files found in a directory, using an optional filtering pattern
sub get_files {
my ($self, $root, $path, $pattern) = @_;
croak "Not a class method" unless ref $self;
+ $root ||= '';
+ $path ||= '';
print "Looking for files matching $pattern in $root/$path\n"
if $self->{_verbose} > 1;