~rbn/neinp

ref: 314a874f1439902314753295580dc8ef3083fde8 neinp/stat/fileinfo_nostat.go -rw-r--r-- 298 bytes
314a874fAaron Bieber Split FileInfo into separate files that can be used per OS. 11 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
//+build darwin plan9

package stat // import "go.rbn.im/neinp/stat"

import (
	"os"
)

// fileInfo creates Stat using os.FileInfo.Sys(). If using the information
// returned by Sys() fails, it returns a stat like returned by GenericStat.
func fileInfo(fi os.FileInfo) Stat {
	return Generic(fi)
}