stdune
Dune's unstable standard library
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
package stdune
-
stdune
-
-
stdune.filesystem_stubs
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type t = w Local_gen.t
val hash : t -> int
val to_string : t -> string
val of_string : string -> t
val parse_string_exn : loc:Stdune__Loc0.t -> string -> t
a directory is smaller than its descendants
include Comparator.S with type t := t
val compare : t -> t -> Ordering.t
val extension : t -> string
map_extension path ~f
replaces extension of path
by f extension
val basename : t -> string
val basename_opt : t -> string option
module Set : sig ... end
val to_string_maybe_quoted : t -> string
val is_root : t -> bool
val root : t
module L : sig ... end
val explode : t -> string list
Source.t
here is a lie in some cases: consider when the context name happens to be "install"
or ".alias"
.
This function does the same as extract_build_context
, but has a "righter" type.
module Kind : sig ... end
val set_build_dir : Kind.t -> unit
Set the build directory. Can only be called once and must be done before paths are converted to strings elsewhere.
val chmod : t -> mode:int -> unit
Set permissions for a given path. You can use the Permissions
module if you need to modify existing permissions in a non-trivial way.
val lstat : t -> Unix.stats
val unlink_no_err : t -> unit
ON THIS PAGE
No table of contents