Module Fpath_sexp0.FsegmentSource

Part of a file path.

A Fsegment.t represents a segment of a file path, i.e., the parts of the path that are separated by the directory separator character.

For example, in the file path "/home/user/documents/file.txt", the segments are ["home" ; "user" ; "documents" ; "file.txt"].

A valid file segment cannot contain '/', the directory separator char or null characters.

By contrast to Fpath's seg, a Fsegment.t may not be empty.

This module provides functions to convert between strings and file segments, validate segments, and some common file segments.

Sourcetype t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval compare : t -> t -> int
Sourceval equal : t -> t -> bool
Sourceval hash : t -> int
Sourceval seeded_hash : int -> t -> int
Sourceval of_string : string -> (t, [ `Msg of string ]) Result.t
Sourceval to_string : t -> string
Sourceval v : string -> t
Sourceval dot : t

Unix "." file name.

Sourceval dot_dot : t

Unix ".." file name.

vcs

Version control store directories.

Sourceval dot_git : t
Sourceval dot_hg : t