diff options
-rw-r--r-- | lib/LXRng/Repo/Plain/Directory.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/LXRng/Repo/Plain/Directory.pm b/lib/LXRng/Repo/Plain/Directory.pm index 788f6bc..6025142 100644 --- a/lib/LXRng/Repo/Plain/Directory.pm +++ b/lib/LXRng/Repo/Plain/Directory.pm @@ -40,8 +40,9 @@ sub contents { next if $node =~ /^\.|~$|\.orig$/; next if $node eq 'CVS'; - push(@files, LXRng::Repo::Plain::File->new($$self{'name'}.$node, - $$self{'path'}.$node)); + my $file = LXRng::Repo::Plain::File->new($$self{'name'}.$node, + $$self{'path'}.$node); + push(@files, $file) if $file; } closedir($dir); |