package frama-c
Install
dune-project
Dependency
Authors
-
MMichele Alberti
-
TThibaud Antignac
-
GGergö Barany
-
PPatrick Baudin
-
TThibaut Benjamin
-
AAllan Blanchard
-
LLionel Blatter
-
FFrançois Bobot
-
RRichard Bonichon
-
QQuentin Bouillaguet
-
DDavid Bühler
-
ZZakaria Chihani
-
LLoïc Correnson
-
JJulien Crétin
-
PPascal Cuoq
-
ZZaynah Dargaye
-
BBasile Desloges
-
JJean-Christophe Filliâtre
-
PPhilippe Herrmann
-
MMaxime Jacquemin
-
FFlorent Kirchner
-
AAlexander Kogtenkov
-
TTristan Le Gall
-
JJean-Christophe Léchenet
-
MMatthieu Lemerre
-
DDara Ly
-
DDavid Maison
-
CClaude Marché
-
AAndré Maroneze
-
TThibault Martin
-
FFonenantsoa Maurica
-
MMelody Méaulle
-
BBenjamin Monate
-
YYannick Moy
-
PPierre Nigron
-
AAnne Pacalet
-
VValentin Perrelle
-
GGuillaume Petiot
-
DDario Pinto
-
VVirgile Prevosto
-
AArmand Puccetti
-
FFélix Ridoux
-
VVirgile Robles
-
JJan Rochel
-
MMuriel Roger
-
JJulien Signoles
-
NNicolas Stouls
-
KKostyantyn Vorobyov
-
BBoris Yakobowski
Maintainers
Sources
sha256=29612882330ecb6eddd0b4ca3afc0492b70d0feb3379a1b8e893194c6e173983
doc/frama-c.kernel/Frama_c_kernel/Filepath/index.html
Module Frama_c_kernel.Filepath
Functions manipulating filepaths. In these functions, references to the current working directory refer to the result given by function Sys.getcwd.
NOTE: Prefer using the Normalized module whenever possible.
val normalize : ?existence:existence -> ?base_name:string -> string -> stringReturns an absolute path leading to the given file. The result is similar to realpath --no-symlinks. Some special behaviors include:
normalize ""(empty string) returns "" (realpath returns an error);normalizepreserves multiple sequential '/' characters, unlikerealpath;- non-existing directories in
realpathmay lead to ENOTDIR errors, butnormalizemay accept them.
relativize base_name file_name returns a relative path name of file_name w.r.t. base_name, if base_name is a prefix of file; otherwise, returns file_name unchanged. The default base name is the current working directory name.
module Normalized : sig ... endThe Normalized module is simply a wrapper that ensures that paths are always normalized. Used by Datatype.Filepath.
val is_relative : ?base_name:Normalized.t -> Normalized.t -> boolreturns true if the file is relative to base (that is, it is prefixed by base_name), or to the current working directory if no base is specified.
val add_symbolic_dir : string -> Normalized.t -> unitadd_symbolic_dir name dir indicates that the (absolute) path dir must be replaced by name when pretty-printing paths. This alias ensures that system-dependent paths such as FRAMAC_SHARE are printed identically in different machines.
val add_symbolic_dir_list : string -> Normalized.t list -> unitval all_symbolic_dirs : unit -> (string * Normalized.t) listReturns the list of symbolic dirs added via add_symbolic_dir, plus preexisting ones (e.g. FRAMAC_SHARE), as pairs (name, dir).
Describes a position in a source file.
val pp_pos : Format.formatter -> position -> unitPretty-prints a position, in the format file:line.
val pwd : unit -> Normalized.tReturn the current working directory. Implicitly uses Unix.realpath to normalize paths and avoid issues with symbolic links in directory names.
val exists : Normalized.t -> boolEquivalent to Sys.file_exists.
val is_dir : Normalized.t -> boolEquivalent to Sys.is_directory.
val readdir : Normalized.t -> string arrayEquivalent to Sys.readdir.
val remove : Normalized.t -> unitEquivalent to Sys.remove.
val rename : Normalized.t -> Normalized.t -> unitEquivalent to Sys.rename.
val basename : Normalized.t -> stringEquivalent to Filename.basename.
val dirname : Normalized.t -> Normalized.tEquivalent to Filename.dirname.