File.Sync
val open_ :
?mode:Mode.t list ->
string ->
Open_flag.t list ->
(t, Error.t) Stdlib.result
Synchronous version of Luv.File.open_
.
Synchronous version of Luv.File.close
.
Synchronous version of Luv.File.read
.
Synchronous version of Luv.File.write
.
val unlink : string -> (unit, Error.t) Stdlib.result
Synchronous version of Luv.File.unlink
.
val rename : string -> to_:string -> (unit, Error.t) Stdlib.result
Synchronous version of Luv.File.rename
.
Synchronous version of Luv.File.mkstemp
.
val mkdtemp : string -> (string, Error.t) Stdlib.result
Synchronous version of Luv.File.mkdtemp
.
Synchronous version of Luv.File.mkdir
.
val rmdir : string -> (unit, Error.t) Stdlib.result
Synchronous version of Luv.File.rmdir
.
Synchronous version of Luv.File.opendir
.
Synchronous version of Luv.File.closedir
.
Synchronous version of Luv.File.readdir
.
val scandir : string -> (Directory_scan.t, Error.t) Stdlib.result
Synchronous version of Luv.File.scandir
.
Synchronous version of Luv.File.stat
.
Synchronous version of Luv.File.lstat
.
Synchronous version of Luv.File.fstat
.
Synchronous version of Luv.File.statfs
.
Synchronous version of Luv.File.fsync
.
Synchronous version of Luv.File.fdatasync
.
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
.
Synchronous version of Luv.File.chmod
.
Synchronous version of Luv.File.fchmod
.
val utime :
string ->
atime:float ->
mtime:float ->
(unit, Error.t) Stdlib.result
Synchronous version of Luv.File.utime
.
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)
val link : string -> link:string -> (unit, Error.t) Stdlib.result
Synchronous version of Luv.File.link
.
val symlink :
?dir:bool ->
?junction:bool ->
string ->
link:string ->
(unit, Error.t) Stdlib.result
Synchronous version of Luv.File.symlink
.
val readlink : string -> (string, Error.t) Stdlib.result
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
.
Synchronous version of Luv.File.fchown
.