Use Stat.mtime() instead of .mtim

Aha, so that's why the mtime() method exists, the field has a different
name on some other systems.

Fixes #258
This commit is contained in:
Yorhel 2025-05-01 14:51:09 +02:00
parent 653c3bfe70
commit 58e6458130

View file

@ -77,7 +77,7 @@ fn statAt(parent: std.fs.Dir, name: [:0]const u8, follow: bool, symlink: *bool)
.hasgid = true,
.hasmode = true,
},
.mtime = clamp(model.Ext, .mtime, stat.mtim.sec),
.mtime = clamp(model.Ext, .mtime, stat.mtime().sec),
.uid = truncate(model.Ext, .uid, stat.uid),
.gid = truncate(model.Ext, .gid, stat.gid),
.mode = truncate(model.Ext, .mode, stat.mode),