Permalink
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (9 sloc) 172 Bytes
package main
import (
"os"
"syscall"
)
func file_ids(info *os.FileInfo) (uint64, uint64) {
fstat := (*info).Sys().(*syscall.Stat_t)
return fstat.Ino, fstat.Dev
}