package stdune

  1. Overview
  2. Docs
Dune's unstable standard library

Install

Dune Dependency

Authors

Maintainers

Sources

dune-3.7.0.tbz
sha256=e2d637c9d080318fedf5e71d2a29fb367624f82ac4a26e83df2b3a03550528b8
sha512=586e47ee45cd53a8c13095bde0b47de99aad9462d0a52199362140b5b654ca862597fa9f27f729a8cc594684ac46858848f9fa76f8f06dc8dc8ab8b1186a3295

doc/stdune/Stdune/Fpath/index.html

Module Stdune.FpathSource

Functions on paths that are represented as strings

Sourcetype mkdir_result =
  1. | Already_exists
    (*

    The directory already exists. No action was taken.

    *)
  2. | Created
    (*

    The directory was created.

    *)
  3. | Missing_parent_directory
    (*

    No parent directory, use mkdir_p if you want to create it too.

    *)
Sourceval mkdir : ?perms:int -> string -> mkdir_result
Sourcetype mkdir_p_result =
  1. | Already_exists
    (*

    The directory already exists. No action was taken.

    *)
  2. | Created
    (*

    The directory was created.

    *)
Sourceval mkdir_p : ?perms:int -> string -> mkdir_p_result

follow_symlinks path returns a file path that is equivalent to path, but free of symbolic links. The value None is returned if the maximum symbolic link depth is reached (i.e., follow_symlink returns the value Error Max_depth_exceeded on some intermediate path).

Sourceval initial_cwd : string
Sourcetype clear_dir_result =
  1. | Cleared
  2. | Directory_does_not_exist
Sourceval clear_dir : string -> clear_dir_result
Sourceval rm_rf : string -> unit

If the path does not exist, this function is a no-op.

Sourceval is_root : string -> bool
OCaml

Innovation. Community. Security.