module Stat: sig
.. end
Line structure for file status and mode information. See
stat(2) and Unix.stat
.
val dev : Line.t -> int
The id of the device containing the file. (accessor, required)
val set_dev : int -> Line.t -> Line.t
val inode : Line.t -> int
The inode of the file. (accessor, required)
val set_inode : int -> Line.t -> Line.t
val kind : Line.t -> Unix.file_kind
The type of the file (regular file, directory, named pipe, etc.).
See Unix.file_kind
. (accessor, required, default = Unix.S_REG
)
val set_kind : Unix.file_kind -> Line.t -> Line.t
module Mode: sig
.. end
Various bits in a file's mode (permissions).
val nlink : Line.t -> int
The number of hard links to the file. (accessor, required)
val set_nlink : int -> Line.t -> Line.t
val uid : Line.t -> int
User id of the owner of the file. (accessor, required)
val set_uid : int -> Line.t -> Line.t
val gid : Line.t -> int
Group id of the file. (accessor, required)
val set_gid : int -> Line.t -> Line.t
val rdev : Line.t -> int
Device number of the file (if it's a special file). (accessor, required)
val set_rdev : int -> Line.t -> Line.t
val size : Line.t -> int
Size of the file in bytes. This is the size of the file's
contents for a regular file, or the length of the target path of a
symbolic link. (accessor, required)
val set_size : int -> Line.t -> Line.t
val blksize : Line.t -> int
The preferred block size for efficient I/O with this file. (accessor, nullable)
val set_blksize : int -> Line.t -> Line.t
val blocks : Line.t -> int
The number of 512-byte blocks in the file. (accessor, nullable)
val set_blocks : int -> Line.t -> Line.t
val atime : Line.t -> float
The file's atime. (accessor, required)
val set_atime : float -> Line.t -> Line.t
val mtime : Line.t -> float
The file's mtime. (accessor, required)
val set_mtime : float -> Line.t -> Line.t
val ctime : Line.t -> float
The file's ctime. (accessor, required)
val set_ctime : float -> Line.t -> Line.t
val create : dev:int ->
inode:int ->
kind:Unix.file_kind ->
nlink:int ->
uid:int ->
gid:int ->
rdev:int ->
size:int -> atime:float -> mtime:float -> ctime:float -> Line.t -> Line.t