package luv

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val open_ : ?mode:Mode.t list -> string -> Open_flag.t list -> (t, Error.t) Stdlib.result

Synchronous version of Luv.File.open_.

val close : t -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.close.

val read : ?file_offset:int64 -> t -> Buffer.t list -> (Unsigned.Size_t.t, Error.t) Stdlib.result

Synchronous version of Luv.File.read.

val write : ?file_offset:int64 -> t -> Buffer.t list -> (Unsigned.Size_t.t, Error.t) Stdlib.result

Synchronous version of Luv.File.write.

Synchronous version of Luv.File.unlink.

val rename : string -> to_:string -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.rename.

val mkstemp : string -> (string * t, Error.t) Stdlib.result

Synchronous version of Luv.File.mkstemp.

val mkdtemp : string -> (string, Error.t) Stdlib.result

Synchronous version of Luv.File.mkdtemp.

val mkdir : ?mode:Mode.t list -> string -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.mkdir.

val rmdir : string -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.rmdir.

val opendir : string -> (Dir.t, Error.t) Stdlib.result

Synchronous version of Luv.File.opendir.

val closedir : Dir.t -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.closedir.

val readdir : ?number_of_entries:int -> Dir.t -> (Dirent.t array, Error.t) Stdlib.result

Synchronous version of Luv.File.readdir.

val scandir : string -> (Directory_scan.t, Error.t) Stdlib.result

Synchronous version of Luv.File.scandir.

val stat : string -> (Stat.t, Error.t) Stdlib.result

Synchronous version of Luv.File.stat.

val lstat : string -> (Stat.t, Error.t) Stdlib.result

Synchronous version of Luv.File.lstat.

val fstat : t -> (Stat.t, Error.t) Stdlib.result

Synchronous version of Luv.File.fstat.

val statfs : string -> (Statfs.t, Error.t) Stdlib.result

Synchronous version of Luv.File.statfs.

val fsync : t -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.fsync.

val fdatasync : t -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.fdatasync.

val ftruncate : t -> int64 -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.ftruncate.

val copyfile : ?excl:bool -> ?ficlone:bool -> ?ficlone_force:bool -> string -> to_:string -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.copyfile.

val sendfile : t -> to_:t -> offset:int64 -> Unsigned.Size_t.t -> (Unsigned.Size_t.t, Error.t) Stdlib.result

Synchronous version of Luv.File.sendfile.

val access : string -> Access_flag.t list -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.access.

val chmod : string -> Mode.t list -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.chmod.

val fchmod : t -> Mode.t list -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.fchmod.

val utime : string -> atime:float -> mtime:float -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.utime.

val futime : t -> atime:float -> mtime:float -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.futime.

val lutime : string -> atime:float -> mtime:float -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.lutime.

Requires Luv 0.5.2 and libuv 1.36.0.

Feature check: Luv.Require.(has fs_lutime)

Synchronous version of Luv.File.link.

Synchronous version of Luv.File.symlink.

Synchronous version of Luv.File.readlink.

val realpath : string -> (string, Error.t) Stdlib.result

Synchronous version of Luv.File.realpath.

val chown : string -> uid:int -> gid:int -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.chown.

val lchown : string -> uid:int -> gid:int -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.lchown.

val fchown : t -> uid:int -> gid:int -> (unit, Error.t) Stdlib.result

Synchronous version of Luv.File.fchown.

OCaml

Innovation. Community. Security.