fileinfo_linux.go 172 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, uint64) {
  fstat := (*info).Sys().(*syscall.Stat_t)
  return fstat.Ino, fstat.Dev
}