]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/getter/http_getter_storage.mli
ocaml 3.09 transition
[helm.git] / helm / ocaml / getter / http_getter_storage.mli
index 396510af800a6e2b799f37aaa51bf782951cde0b..5dd997843f1c1486be490f8bd02a7a428b2c7f25 100644 (file)
  * holds: that exception is raised iff exists return false on a given resource
  * *)
 
-exception Resource_not_found of string  (** uri *)
+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
 
 
   (** @return the filename of the resource corresponding to a given uri. Handle
-   * download and caching for remote resources. *)
-val filename: string -> string
+   * download and caching for remote resources.
+   * @param find if set to true all matching prefixes will be searched for the
+   * asked resource, if not only the best matching prefix will be used. Note
+   * 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
 
   (** only works for local resources
    * if both compressed and non-compressed versions of a resource exist, both of