Module Luv__File.Sync
val open_ : ?mode:Mode.t list -> string -> Open_flag.t list -> (t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.open_
.
val close : t -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.close
.
val read : ?file_offset:int64 -> t -> Luv.Buffer.t list -> (Unsigned.Size_t.t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.read
.
val write : ?file_offset:int64 -> t -> Luv.Buffer.t list -> (Unsigned.Size_t.t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.write
.
val unlink : string -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.unlink
.
val rename : string -> to_:string -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.rename
.
val mkstemp : string -> (string * t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.mkstemp
.
val mkdtemp : string -> (string, Luv.Error.t) Result.result
Synchronous version of
Luv.File.mkdtemp
.
val mkdir : ?mode:Mode.t list -> string -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.mkdir
.
val rmdir : string -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.rmdir
.
val opendir : string -> (Dir.t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.opendir
.
val closedir : Dir.t -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.closedir
.
val readdir : ?number_of_entries:int -> Dir.t -> (Dirent.t array, Luv.Error.t) Result.result
Synchronous version of
Luv.File.readdir
.
val scandir : string -> (Directory_scan.t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.scandir
.
val stat : string -> (Stat.t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.stat
.
val lstat : string -> (Stat.t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.lstat
.
val fstat : t -> (Stat.t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.fstat
.
val statfs : string -> (Statfs.t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.statfs
.
val fsync : t -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.fsync
.
val fdatasync : t -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.fdatasync
.
val ftruncate : t -> int64 -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.ftruncate
.
val copyfile : ?excl:bool -> ?ficlone:bool -> ?ficlone_force:bool -> string -> to_:string -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.copyfile
.
val sendfile : t -> to_:t -> offset:int64 -> Unsigned.Size_t.t -> (Unsigned.Size_t.t, Luv.Error.t) Result.result
Synchronous version of
Luv.File.sendfile
.
val access : string -> Access_flag.t list -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.access
.
val chmod : string -> Mode.t list -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.chmod
.
val fchmod : t -> Mode.t list -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.fchmod
.
val utime : string -> atime:float -> mtime:float -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.utime
.
val futime : t -> atime:float -> mtime:float -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.futime
.
val lutime : string -> atime:float -> mtime:float -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.lutime
.- since
- Luv 0.5.2 (libuv 1.36.0).
val link : string -> link:string -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.link
.
val symlink : ?dir:bool -> ?junction:bool -> string -> link:string -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.symlink
.
val readlink : string -> (string, Luv.Error.t) Result.result
Synchronous version of
Luv.File.readlink
.
val realpath : string -> (string, Luv.Error.t) Result.result
Synchronous version of
Luv.File.realpath
.
val chown : string -> uid:int -> gid:int -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.chown
.
val lchown : string -> uid:int -> gid:int -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.lchown
.
val fchown : t -> uid:int -> gid:int -> (unit, Luv.Error.t) Result.result
Synchronous version of
Luv.File.fchown
.