Module Ecaml.File

File is for functions that operate on files on the filesystem.

val exists : string ‑> bool

(Info-goto-node "(elisp)Information about Files")

(describe-function 'file-exists-p)

val is_directory : string ‑> bool

(describe-function 'file-exists-p)

(describe-function 'file-directory-p)

val is_executable : string ‑> bool

(describe-function 'file-directory-p)

(describe-function 'file-executable-p)

val is_readable : string ‑> bool

(describe-function 'file-executable-p)

(describe-function 'file-readable-p)

val is_regular : string ‑> bool

(describe-function 'file-readable-p)

(describe-function 'file-regular-p)

val is_writable : string ‑> bool

(describe-function 'file-symlink-p)

(describe-function 'file-writable-p)

val is_below : string ‑> dir:string ‑> bool

(describe-function 'file-in-directory-p)(Info-goto-node "(elisp)Truenames")

val truename : string ‑> string

(describe-function 'file-truename)(Info-goto-node "(elisp)Truenames")

val delete : string ‑> unit

(describe-function 'delete-file)(Info-goto-node "(elisp)Changing Files")

val copy : src:string ‑> dst:string ‑> unit

(describe-function 'copy-file)(Info-goto-node "(elisp)Changing Files")

val rename : src:string ‑> dst:string ‑> replace_dst_if_exists:bool ‑> unit

(describe-function 'rename-file)(Info-goto-node "(elisp)Changing Files")

val locate : ?⁠suffixes:string list ‑> ?⁠predicate:Value.t ‑> filename:string ‑> path:string list ‑> unit ‑> string option

(describe-function 'locate-file)

val locate_dominating_file : above:Filename.t ‑> basename:string ‑> Filename.t option

(describe-function 'locate-dominating-file)

val locate_dominating_file_exn : above:Filename.t ‑> basename:string ‑> Filename.t

(describe-function 'locate-dominating-file)

val write : ?⁠append:bool ‑> Filename.t ‑> string ‑> unit

(describe-function 'write-region)(Info-goto-node "(elisp)Writing to Files")