Module File.Stat

Convenient functions to access the fields of the Unix stat structure.

These functions retrieve information about the file ultimately pointed to by fn -- in other words, if fn is a symlink then Stat.ino fn = Stat.ino (Unix.readlink fn).

val dev : string -> int

(dev fn) is the device major number of fn.

val rdev : string -> int

(rdev fn) is the device minor number of fn.

val ino : string -> int

(ino fn) is the inode number of fn.

val kind : string -> Unix.file_kind

(kind fn) is the kind of fn.

val perm : string -> Unix.file_perm

(perm fn) is the permissions of fn.

(nlink fn) is the number of links of fn.

val uid : string -> int

(uid fn) is the user id of the owner of fn.

val gid : string -> int

(gid fn) is the group id of the owner of fn.

val size : string -> int

(size fn) is the size of fn in bytes.

val atime : string -> float

(atime fn) is the last access time of fn.

val mtime : string -> float

(mtime fn) is the last modifcation time of fn.

val ctime : string -> float

(ctime fn) is the last status change time of fn.