summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-03-29 14:58:44 +0100
committerJakob Borg <jakob@nym.se>2014-03-29 14:58:44 +0100
commit1139ea2c816f77ac3ed687f200941dcfe21fbbf3 (patch)
treed12cdd4b548e79b14b3afd1d9024bb3e90a5f86f
parentf87b1520e892c22da184f16e16fa95684b711e8d (diff)
Expose a bit more information about needed file in REST interface
-rw-r--r--cmd/syncthing/gui.go12
1 files changed, 8 insertions, 4 deletions
diff --git a/cmd/syncthing/gui.go b/cmd/syncthing/gui.go
index 53d9f01ae5..a9e7399932 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,
})
}