Module File.Sync

val open_ : ?⁠mode:Mode.t list -> string -> Open_flag.t list -> (tError.t) Result.result

Synchronous version of Luv.File.open_.

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

Synchronous version of Luv.File.close.

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

Synchronous version of Luv.File.read.

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

Synchronous version of Luv.File.write.

Synchronous version of Luv.File.unlink.

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

Synchronous version of Luv.File.rename.

val mkstemp : string -> (string * tError.t) Result.result

Synchronous version of Luv.File.mkstemp.

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

Synchronous version of Luv.File.mkdtemp.

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

Synchronous version of Luv.File.mkdir.

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

Synchronous version of Luv.File.rmdir.

val opendir : string -> (Dir.tError.t) Result.result

Synchronous version of Luv.File.opendir.

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

Synchronous version of Luv.File.closedir.

val readdir : ?⁠number_of_entries:int -> Dir.t -> (Dirent.t arrayError.t) Result.result

Synchronous version of Luv.File.readdir.

val scandir : string -> (Directory_scan.tError.t) Result.result

Synchronous version of Luv.File.scandir.

val stat : string -> (Stat.tError.t) Result.result

Synchronous version of Luv.File.stat.

val lstat : string -> (Stat.tError.t) Result.result

Synchronous version of Luv.File.lstat.

val fstat : t -> (Stat.tError.t) Result.result

Synchronous version of Luv.File.fstat.

val statfs : string -> (Statfs.tError.t) Result.result

Synchronous version of Luv.File.statfs.

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

Synchronous version of Luv.File.fsync.

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

Synchronous version of Luv.File.fdatasync.

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

Synchronous version of Luv.File.ftruncate.

val copyfile : ?⁠excl:bool -> ?⁠ficlone:bool -> ?⁠ficlone_force:bool -> string -> to_:string -> (unit, 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, Error.t) Result.result

Synchronous version of Luv.File.sendfile.

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

Synchronous version of Luv.File.access.

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

Synchronous version of Luv.File.chmod.

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

Synchronous version of Luv.File.fchmod.

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

Synchronous version of Luv.File.utime.

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

Synchronous version of Luv.File.futime.

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

Synchronous version of Luv.File.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) Result.result

Synchronous version of Luv.File.realpath.

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

Synchronous version of Luv.File.chown.

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

Synchronous version of Luv.File.lchown.

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

Synchronous version of Luv.File.fchown.