* 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