aboutsummaryrefslogtreecommitdiff
path: root/vfs/vfs.ts
diff options
context:
space:
mode:
Diffstat (limited to 'vfs/vfs.ts')
-rw-r--r--vfs/vfs.ts13
1 files changed, 6 insertions, 7 deletions
diff --git a/vfs/vfs.ts b/vfs/vfs.ts
index e87951d..408a58e 100644
--- a/vfs/vfs.ts
+++ b/vfs/vfs.ts
@@ -8,9 +8,8 @@ export interface WuiVfsNodeInterface {
name: string
path: string
is_dir?: boolean
-
- mod_time_epoch?: number
- mod_time_rfc3339?: string
+ content_type?: string
+ mod_time?: number
size?: number
mode?: string
childs?: WuiVfsNodeInterface[]
@@ -77,8 +76,8 @@ export class WuiVfs {
class WuiVfsNode implements WuiVfsNodeInterface {
path: string
name: string
- mod_time_epoch: number
- mod_time_rfc3339: string
+ content_type: string
+ mod_time: number
size: number
mode: string
is_dir: boolean
@@ -87,8 +86,8 @@ class WuiVfsNode implements WuiVfsNodeInterface {
constructor(opts: WuiVfsNodeInterface) {
this.path = opts.path || ""
this.name = opts.name || ""
- this.mod_time_epoch = opts.mod_time_epoch || 0
- this.mod_time_rfc3339 = opts.mod_time_rfc3339 || ""
+ this.content_type = opts.content_type || ""
+ this.mod_time = opts.mod_time || 0
this.size = opts.size || 0
this.mode = opts.mode || ""
this.is_dir = opts.is_dir || false