Data_fileData files stored in the data directory.
val make :
?digest:string ->
Data_dir.section ->
filename:string ->
src:src ->
tmake section ~file ~src is a data file named file sourced from src in stored in the data directory section Data_dir.section.
val filename : t -> stringfilename f is the filename of f.
val digest : t -> string optiondigest f is the digest of f (if any).
val exists : data_dir:B0_std.Fpath.t -> t -> (bool, string) Stdlib.resultexists ~data_dir f tests f for existence in data_dir.
val find :
data_dir:B0_std.Fpath.t ->
t ->
(B0_std.Fpath.t option, string) Stdlib.resultfind ~data_dir f finds f in data_dir.
val get :
data_dir:B0_std.Fpath.t ->
t ->
(B0_std.Fpath.t, string) Stdlib.resultget ~data_dir f gets the file to f in data_dir and errors with an error message if it doesn't exist.
val download :
httpc:B0_http.Http_client.t ->
data_dir:B0_std.Fpath.t ->
t ->
(B0_std.Fpath.t, string) Stdlib.resultdownload ~httpc ~data_dir f downloads f to data_dir using httpc.