Skip to content

Commit

Permalink
fileInfo replaced on os.Stat in stdFs impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor Chernukha committed Feb 2, 2019
1 parent 3db2a43 commit db4a423
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions fs.go
Expand Up @@ -145,17 +145,7 @@ func (fs *stdFs) Stat(name string) (FileInfo, error) {
return FileInfo{}, err
}

return FileInfo{
FileInfo: &fileInfo{
name: name,
size: stat.Size(),
fileMode: stat.Mode(),
isDir: stat.IsDir(),
sys: stat.Sys(),
wt: stat.ModTime(),
},
Atime: atime.Get(stat),
}, nil
return FileInfo{FileInfo: stat, Atime: atime.Get(stat)}, nil
}

const (
Expand Down

0 comments on commit db4a423

Please sign in to comment.