package catala

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

Module Catala_utils.PathSource

Pure path/URL helpers. Internal: File/Message expose the host-specialised versions.

Sourceval win32 : bool ref

Target OS, defaulting to the host (Sys.win32). Tests override it to exercise Windows behaviour on any host; production never assigns it.

Sourceval dir_sep_re : unit -> Re.re
Sourceval list_sep : unit -> string

Separator between entries of a path-list env var (PATH, PYTHONPATH, CLASSPATH).

Sourceval to_list : string -> string option * string list
Sourceval clean : string -> string
Sourceval make_absolute : cwd:string -> string -> string
Sourceval remove_prefix : cwd:string -> string -> string -> string
Sourceval common_prefix : cwd:string -> string -> string -> string
Sourceval make_relative_to : cwd:string -> dir:string -> string -> string
Sourceval reverse : cwd:string -> from_dir:string -> to_dir:string -> string -> string
Sourceval url_of_absolute : string -> string

Path part of a file:// URL for an absolute OS path. Handles Windows drive paths (C:\dir -> /C:/dir) and UNC paths (\\server\share -> server/share).