]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/getter/http_getter_storage.mli
Universes speedup:
[helm.git] / helm / ocaml / getter / http_getter_storage.mli
index 396510af800a6e2b799f37aaa51bf782951cde0b..24fc329c9f03316218de44352e7217007b425991 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
@@ -58,5 +63,9 @@ val remove: string -> unit
 val exists: string -> bool
 val resolve: string -> string
 
+(* val get_attrs: string -> Http_getter_types.prefix_attr list *)
+val is_read_only: string -> bool
+val is_legacy: string -> bool
+
 val clean_cache: unit -> unit