Skip to content
Snippets Groups Projects
Commit 1139ea2c authored by Jakob Borg's avatar Jakob Borg
Browse files

Expose a bit more information about needed file in REST interface

parent f87b1520
Branches
Tags
No related merge requests found
......@@ -121,10 +121,14 @@ func (f guiFile) MarshalJSON() ([]byte, error) {
type t struct {
Name string
Size int64
Modified int64
Flags uint32
}
return json.Marshal(t{
Name: f.Name,
Size: scanner.File(f).Size,
Modified: f.Modified,
Flags: f.Flags,
})
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment