]> matita.cs.unibo.it Git - helm.git/blobdiff - components/getter/http_getter_storage.mli
maxipatch for support of multiple DBs.
[helm.git] / components / getter / http_getter_storage.mli
index 04af29f0ce4a2929cb8837d4ee018e74cecc7d49..cc0ff46c4797ee77c76fc9005937bb0880498796 100644 (file)
@@ -43,7 +43,7 @@
 exception Resource_not_found of string * string  (** method, uri *)
 
   (** @return a list of string where dir are returned with a trailing "/" *)
-val ls: string -> string list
+val ls: local:bool -> string -> string list
 
 
   (** @return the filename of the resource corresponding to a given uri. Handle
@@ -53,20 +53,21 @@ val ls: string -> string list
    * that the search is performed only if the asked resource is not found in
    * cache (i.e. to perform the find again you need to clean the cache).
    * Defaults to false *)
-val filename: ?find:bool -> string -> string
+val filename: local:bool -> ?find:bool -> string -> string
 
   (** only works for local resources
    * if both compressed and non-compressed versions of a resource exist, both of
    * them are removed *)
 val remove: string -> unit
 
-val exists: string -> bool
-val resolve: ?must_exists:bool -> writable:bool -> string -> string
+val exists: local:bool -> string -> bool
+val resolve: 
+  local:bool -> ?must_exists:bool -> writable:bool -> string -> string
 
 (* val get_attrs: string -> Http_getter_types.prefix_attr list *)
 val is_read_only: string -> bool
 val is_legacy: string -> bool
-val is_empty: string -> bool
+val is_empty: local:bool -> string -> bool
 
 val clean_cache: unit -> unit