From 1139ea2c816f77ac3ed687f200941dcfe21fbbf3 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 29 Mar 2014 14:58:44 +0100 Subject: [PATCH] Expose a bit more information about needed file in REST interface --- cmd/syncthing/gui.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go index 53d9f01ae..a9e739993 100644 --- a/cmd/syncthing/gui.go +++ b/cmd/syncthing/gui.go @@ -119,12 +119,16 @@ type guiFile scanner.File func (f guiFile) MarshalJSON() ([]byte, error) { type t struct { - Name string - Size int64 + Name string + Size int64 + Modified int64 + Flags uint32 } return json.Marshal(t{ - Name: f.Name, - Size: scanner.File(f).Size, + Name: f.Name, + Size: scanner.File(f).Size, + Modified: f.Modified, + Flags: f.Flags, }) }