Module Fs.FileSource

Sourcetype t = file
Sourceval create : directory:Directory.t -> name:string -> t
Sourceval dirname : t -> Directory.t
Sourceval basename : t -> t
Sourceval append : Directory.t -> t -> t
Sourceval set_ext : string -> t -> t
Sourceval has_ext : string -> t -> bool
Sourceval get_ext : t -> string
Sourceval of_string : string -> t
Sourceval to_string : t -> string
Sourceval segs : t -> string list
Sourceval read : t -> (string, [> Or_error.msg ]) Or_error.result
Sourceval copy : src:t -> dst:t -> (unit, [> Or_error.msg ]) Or_error.result
Sourceval exists : t -> bool
Sourceval of_segs : string list -> t

of_segs segs Returns an absolute path if segs starts with an empty segment. Raises Invalid_argument if segs is empty.

Sourceval append_segs : t -> string list -> t

Append a list of segments to a path. Do not raise.

Sourcemodule Table : Hashtbl.S with type key = t