package odoc

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

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 read : t -> (string, [> Odoc_utils.msg ]) result
Sourceval copy : src:t -> dst:t -> (unit, [> Odoc_utils.msg ]) 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.

OCaml

Innovation. Community. Security.