mirror of https://github.com/jimsalterjrs/sanoid
handle FileNotFound errors properly
This commit is contained in:
parent
f745aa25a1
commit
b748b27a0d
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