package stramon-lib

  1. Overview
  2. Docs

Module Stramon_lib.Abs_pathSource

Normalized absolute path representation

Sourcetype t
Sourceval equal : t -> t -> bool
Sourceval compare : t -> t -> int
Sourceval root : t
Sourceval to_parts : t -> string list
Sourceval of_parts : string list -> t option

Parts that are empty or are a single dot are ignored, i.e. [ "abc"; ""; "."; "def" ] is treated the same as [ "abc"; "def" ] .

.. goes back one level if possible, returns None if not possible.

Returns None if any part

  • has trailing backslashes (odd number of backslashes at the end)
  • or contains /
Sourceval of_parts_exn : string list -> t
Sourceval of_string : ?cwd:t -> string -> t option
Sourceval of_string_exn : ?cwd:t -> string -> t
Sourceval to_string : t -> string