From 2c4ea4a4b9d416f68131cce2b7b85bc1690a512e Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Fri, 4 Feb 2005 09:23:27 +0000 Subject: [PATCH] create path towards dbm file --- helm/ocaml/getter/http_getter_map.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helm/ocaml/getter/http_getter_map.ml b/helm/ocaml/getter/http_getter_map.ml index 4bead0c6c..7c411d831 100644 --- a/helm/ocaml/getter/http_getter_map.ml +++ b/helm/ocaml/getter/http_getter_map.ml @@ -30,7 +30,10 @@ open Http_getter_types class map dbname = let perm = 420 in (* permission 644 in decimal notation *) - let open_dbm () = Dbm.opendbm dbname [ Dbm.Dbm_rdwr; Dbm.Dbm_create ] perm in + let open_dbm () = + Http_getter_misc.mkdir ~parents:true (Filename.dirname dbname); + Dbm.opendbm dbname [ Dbm.Dbm_rdwr; Dbm.Dbm_create ] perm + in object (self) -- 2.39.2