Browse Source

set attributes include crtime

pull/809/head
Chris Lu 6 years ago
parent
commit
a8af1e3f5f
  1. 4
      weed/filesys/file.go

4
weed/filesys/file.go

@ -97,6 +97,10 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
file.entry.Attributes.Gid = req.Gid file.entry.Attributes.Gid = req.Gid
} }
if req.Valid.Crtime() {
file.entry.Attributes.Crtime = req.Crtime.Unix()
}
if req.Valid.Mtime() { if req.Valid.Mtime() {
file.entry.Attributes.Mtime = req.Mtime.Unix() file.entry.Attributes.Mtime = req.Mtime.Unix()
} }

Loading…
Cancel
Save