also show current file version if available

This commit is contained in:
Christoph Klaffl 2019-11-05 17:33:43 +01:00
parent f745aa25a1
commit 838222e500
No known key found for this signature in database
GPG Key ID: 8FC1D76EED4970D2
1 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,14 @@ sub getversions {
}
}
my $filename = "$dataset/$relpath";
my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks) = stat($filename);
if (defined $size) {
$versions{$filename}{'size'} = $size;
$versions{$filename}{'mtime'} = $mtime;
}
return %versions;
}