uwt
Library
Module
Module type
Parameter
Class
Class type
type uv_open_flag =
Flags for Fs_functions.openfile
O_CLOEXEC
doesn't exist, because this flag is unconditionally added by libuv. O_SHARE_DELETE
, O_SHARE_WRITE
, O_SHARE_READ
are always added on Windows, unless O_EXLOCK
is specified.
type symlink_mode =
| S_Default | |
| S_Dir | (* indicates that path points to a directory. *) |
| S_Junction | (* request that the symlink is created using junction points. *) |
On Windows it can be specified how to create symlinks.
type stats = {
st_dev : int; | (* Device number *) |
st_kind : file_kind; | (* Kind of the file *) |
st_perm : int; | (* Access rights *) |
st_nlink : int; | (* Number of links *) |
st_uid : int; | (* User id of the owner *) |
st_gid : int; | (* Group ID of the file's group *) |
st_rdev : int; | (* Device minor number *) |
st_ino : int; | (* Inode number *) |
st_size : int64; | (* Size in bytes *) |
st_blksize : int; | (* "Preferred" block size for efficient filesystem I/O *) |
st_blocks : int; | (* Number of blocks allocated to the file, in 512-byte units *) |
st_flags : int; | (* User defined flags for file *) |
st_gen : int; | (* File generation number *) |
st_atime : int64; | (* Last access time *) |
st_atime_nsec : int; | (* Nanosecond components of last access time *) |
st_mtime : int64; | (* Last modification time *) |
st_mtime_nsec : int; | (* Nanosecond components of last modification time *) |
st_ctime : int64; | (* Last status change time *) |
st_ctime_nsec : int; | (* Nanosecond components of lastt status change time *) |
st_birthtime : int64; | (* File creation time *) |
st_birthtime_nsec : int; | (* Nanosecond components of File creation time *) |
}
File status information. Support for the various fields differs depending on the OS and filesystem.
type clone_mode =
| No_clone | (* Create a normal copy *) |
| Try_clone | (* Try to clone the file, but create a normal copy, if it fails *) |
| Force_clone | (* Try tlone the file, don't create a normal copy, if it fails *) |
Clone mode for Fs_functions.copyfile