You may consult the posix module, but I am not sure if it really helps...
import posix var path:cstring = "/home/jacobsin/test.txt" var s:Stat Stat(path, s)
echo s
using fstat ?
import posix
var f = open "/home/jacobsin/test.txt"
var s: Stat
discard fstat(cint f, s)