From 1a475d9a1b7904e5ac5b22f7d354cb42f1a4340f Mon Sep 17 00:00:00 2001 From: keta1 Date: Wed, 6 Jul 2022 15:37:04 +0800 Subject: [PATCH] add modify_time for GfsBaseStat --- lib/gfs.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gfs.ts b/lib/gfs.ts index 19b81c43..5fbcd84b 100644 --- a/lib/gfs.ts +++ b/lib/gfs.ts @@ -19,6 +19,7 @@ export interface GfsBaseStat { name: string user_id: number create_time: number + modify_time: number is_dir: boolean } @@ -434,6 +435,7 @@ function genGfsDirStat(file: pb.Proto): GfsDirStat { pid: String(file[2]), name: String(file[3]), create_time: file[4], + modify_time: file[5], user_id: file[6], file_count: file[8] || 0, is_dir: true, @@ -451,6 +453,7 @@ function genGfsFileStat(file: pb.Proto): GfsFileStat { sha1: file[10].toHex(), create_time: file[6], duration: file[7], + modify_time: file[8], user_id: file[15], download_times: file[9], is_dir: false,