Skip to content

Commit

Permalink
Merge pull request #29 from david50407/patch/list_files
Browse files Browse the repository at this point in the history
Fix losing file info when listing files
  • Loading branch information
jandre committed Oct 9, 2015
2 parents 9e3d15c + ae33c35 commit deca700
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/util/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ var (
)

type ShortFileInfo struct {
Name string
Size int64
IsDir bool
IsLink bool
ModTime time.Time
Name string `json:"name"`
Size int64 `json:"size"`
IsDir bool `json:"is_dir"`
IsLink bool `json:"is_link"`
ModTime time.Time `json:"modified_time"`
}

func NewShortFileInfo(f os.FileInfo) *ShortFileInfo {
Expand Down

0 comments on commit deca700

Please sign in to comment.