From 61b08187410e2be5e5c441dbf334d67114e891f5 Mon Sep 17 00:00:00 2001 From: Lukasz Czerniawski Date: Mon, 29 Jul 2024 15:32:01 +0200 Subject: [PATCH] Add ctime to FsStat and support of it for unix --- ext/io/fs.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/io/fs.rs b/ext/io/fs.rs index 88e4eee474..4ec6ca0822 100644 --- a/ext/io/fs.rs +++ b/ext/io/fs.rs @@ -95,6 +95,7 @@ pub struct FsStat { pub mtime: Option, pub atime: Option, pub birthtime: Option, + pub ctime: Option, pub dev: u64, pub ino: u64, @@ -163,6 +164,7 @@ impl FsStat { mtime: to_msec(metadata.modified()), atime: to_msec(metadata.accessed()), birthtime: to_msec(metadata.created()), + ctime: unix_or_zero!(ctime), dev: unix_or_zero!(dev), ino: unix_or_zero!(ino),