module Filepath: sig
.. end
Functions manipulating filepaths.
val normalize : string -> string
returns an absolute path leading to the given file.
val pretty : string -> string
Normalize a filename: make it relative if it is "close" to the
current working directory and results in a shorter path and replace
known prefixes by symbolic names. Note that the result of this function
does not necessarily represent a valid file name. Use
Sysutil.absolutize_filename
if you want to obtain the absolute path
of a given file.
Since Neon-20130301
val add_symbolic_dir : string -> string -> unit
add_symbolic_dir name dir
indicates that the (absolute) path dir
must
be replaced by name
in the normalized version.