type t = stringA file should be represented by its absolute path, but currently this is not enforced.
val to_string : t ‑> stringval exists : t ‑> boolval is_directory : t ‑> boolval remove_exn : t ‑> unitremove_exn path tries to remove the file at path from the
file system.
path or access rights are wrong.read_dir d returns a sequence of files and directory contained
in the directory d (or an empty stream if d is not a directory).
false), sub-directories are also
explored.val read_exn : t ‑> stringRead the content of the given file, or raises some exception.
val append_exn : t ‑> string ‑> unitAppend the given string into the given file, possibly raising.
val write_exn : t ‑> string ‑> unitWrite the given string into the given file, possibly raising.
Like read_dir (with recurse=true), this function walks
a directory recursively and yields either files or directories.
Is a file anything that doesn't satisfy is_directory (including
symlinks, etc.)
Like walk but returns a list (therefore it's eager and might take some time on large directories).
val show_walk_item : walk_item ‑> stringval with_temp : ?temp_dir:string ‑> prefix:string ‑> suffix:string ‑> (string ‑> 'a) ‑> 'awith_temp ~prefix ~suffix f will call f with the name of a new
temporary file (located in temp_dir).
After f returns, the file is deleted. Best to be used in
combination with with_out.
See Filename.temp_file.