Skip to content

Commit

Permalink
Add fileInfo.mod to return value of dir()
Browse files Browse the repository at this point in the history
  • Loading branch information
thesephist committed Jan 3, 2020
1 parent 712358e commit 315e7c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ink/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ func inkDir(ctx *Context, in []Value) (Value, error) {
"name": StringValue(fi.Name()),
"len": NumberValue(fi.Size()),
"dir": BooleanValue(fi.IsDir()),
"mod": NumberValue(fi.ModTime().Unix()),
}
}

Expand Down

0 comments on commit 315e7c6

Please sign in to comment.