Merge pull request #452 from phreaker0/error-checking
handle FileNotFound errors properly
This commit is contained in:
commit
02c38026c8
4
findoid
4
findoid
|
@ -64,6 +64,10 @@ sub getversions {
|
|||
my $filename = "$dataset/$snappath/$snap/$relpath";
|
||||
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks) = stat($filename);
|
||||
|
||||
if (!defined $size) {
|
||||
next;
|
||||
}
|
||||
|
||||
# only push to the $versions hash if this size and mtime aren't already present (simple dedupe)
|
||||
my $duplicate = 0;
|
||||
foreach my $version (keys %versions) {
|
||||
|
|
Loading…
Reference in New Issue