Data_dirData directory management.
atify_path p prefixes p with @. p is assumed to be relative.
maybe_atify_path ~data_dir p atifies p iff data_dir is a strict prefix of p.
resolve_path ~data_dir ~default p is p if p does not start with an valid @. Otherwise resolves it replaces @ by the data_dir path. The path may not exist.
files ~data_dir is the list of files in the data dir. If rel is true the files are relative to data_dir and prefixed with @.
Sections are dedicated sub-directories of the data directtory.
The type for data directory sections, i.e. subdirectories.
val section_to_string : section -> stringsection_to_string s is a segment name for the section.
val section_dir :
data_dir:B0_std.Fpath.t ->
rel:bool ->
section ->
B0_std.Fpath.tsection_dir ~data_dir section is the directory to section for data_dir, if rel is true the directory is relative to data_dir and prefixed with @.