filed
Job queue using FUSE
git clone git://mccd.space/filedcommit 30f39f8223c0df6daa0f800b430b264c3bc08d70
parent eb47dfb39ac762fa2381a20b1359666502a30a22
Author: Marc Coquand <marc@coquand.email>
Date: Mon, 15 Dec 2025 16:58:33 +0100
Add ctime and mtime to files
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/main.go b/main.go
@@ -225,6 +225,8 @@ func (f File) Attr(ctx context.Context, a *fuse.Attr) error {
a.Mode = 0o775
a.Gid = uint32(os.Getgid())
a.Uid = uint32(os.Getuid())
+ a.Mtime = f.job.UpdatedAt
+ a.Ctime = f.job.CreatedAt
res, err := f.readContent()
if err != nil {
a.Size = 0