fix: updateTime, createTime and HashInfo (#5111)

This commit is contained in:
Sean
2023-08-29 13:31:24 +08:00
committed by GitHub
parent ce10c9f120
commit 6308f1c35d
7 changed files with 64 additions and 10 deletions

View File

@ -204,6 +204,8 @@ func toObjsResp(objs []model.Obj, parent string, encrypt bool) []ObjResp {
Size: obj.GetSize(),
IsDir: obj.IsDir(),
Modified: obj.ModTime(),
Created: obj.CreateTime(),
HashInfo: obj.GetHash().String(),
Sign: common.Sign(obj, parent, encrypt),
Thumb: thumb,
Type: utils.GetObjType(obj.GetName(), obj.IsDir()),