Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

add modify_time for GfsBaseStat #383

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/gfs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface GfsBaseStat {
name: string
user_id: number
create_time: number
modify_time: number
is_dir: boolean
}

Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down