fileinfo_darwin.go 173 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
package main

import (
  "os"
  "syscall"
)

func file_ids(info *os.FileInfo) (uint64, int32) {
  fstat := (*(info)).Sys().(*syscall.Stat_t)
  return fstat.Ino, fstat.Dev
}