From: Stefano Zacchiroli Date: Fri, 4 Feb 2005 09:23:27 +0000 (+0000) Subject: create path towards dbm file X-Git-Tag: V_0_1_0~35 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=2c4ea4a4b9d416f68131cce2b7b85bc1690a512e;p=helm.git create path towards dbm file --- 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)