module Dir:sig
..end
Note. When paths are relative they are expressed
relative to the current working directory.
val exists : Assemblage.Cmd.path -> bool Assemblage.Cmd.result
exists dir
is true
if directory dir
exists.val getcwd : unit -> Assemblage.Cmd.path Assemblage.Cmd.result
getcwd ()
is the current working directory.val chdir : Assemblage.Cmd.path -> unit Assemblage.Cmd.result
chdir dir
changes the current working directory to dir
.val fold_files_rec : ?skip:string list ->
(string -> 'a -> 'a Assemblage.Cmd.result) ->
'a -> string list -> 'a Assemblage.Cmd.result
fold_files_rec skip f acc paths
folds f
over the files
found in paths
. Files and directories whose suffix matches an
element of skip
are skipped. FIXME this should be using
Assemblage.Path.t
and Assemblage.Path.ext
.