X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fgetter%2Fhttp_getter_map.ml;h=7c411d8317fc570ae8177c2246f18b2c7b3cb44c;hb=acf29bdbdcdc6ad8c2d9d27e8a47500981b605cd;hp=2b61e79761c008568d9552c240cb521667e8b705;hpb=3289eda62f4b44bc5043abd2acff602f7a8e5f26;p=helm.git diff --git a/helm/ocaml/getter/http_getter_map.ml b/helm/ocaml/getter/http_getter_map.ml index 2b61e7976..7c411d831 100644 --- a/helm/ocaml/getter/http_getter_map.ml +++ b/helm/ocaml/getter/http_getter_map.ml @@ -26,12 +26,14 @@ * http://helm.cs.unibo.it/ *) -exception Key_already_in of string;; -exception Key_not_found of string;; +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)