18 lines
286 B
Go
18 lines
286 B
Go
|
package file
|
||
|
|
||
|
import "os"
|
||
|
|
||
|
type FileInfo struct {
|
||
|
Nlink uint32
|
||
|
UID uint32
|
||
|
GID uint32
|
||
|
Major uint32
|
||
|
Minor uint32
|
||
|
Fileid uint64
|
||
|
}
|
||
|
|
||
|
// GetInfo extracts some non-standardized items from the result of a Stat call.
|
||
|
func GetInfo(fi os.FileInfo) *FileInfo {
|
||
|
return getInfo(fi)
|
||
|
}
|