Output as expected json keys

This commit is contained in:
Dane Everitt 2019-04-07 15:11:56 -07:00
parent 0ace25c117
commit 729a84b4bf
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -210,15 +210,15 @@ type Stat struct {
func (s *Stat) MarshalJSON() ([]byte, error) {
return json.Marshal(struct {
Name string
Created string
Modified string
Mode string
Size int64
Directory bool
File bool
Symlink bool
Mime string
Name string `json:"name"`
Created string `json:"created"`
Modified string `json:"modified"`
Mode string `json:"mode"`
Size int64 `json:"size"`
Directory bool `json:"directory"`
File bool `json:"file"`
Symlink bool `json:"symlink"`
Mime string `json:"mime"`
}{
Name: s.Info.Name(),
Created: s.CTime().String(),