]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/getter/http_getter_misc.mli
checked in new version of matita from svn
[helm.git] / helm / ocaml / getter / http_getter_misc.mli
index 5daac8c32eda068248210d5802bede58ba331bd7..39b40e3b5e8fb9c8f295d47bfa280e4141034a4d 100644 (file)
  failure reason *)
 exception Mkdir_failure of string * string
 
-  (** true for URI belonging to the "file://" scheme *)
-val is_local_url: string -> bool
+  (** @return Some localpart for URI belonging to the "file://" scheme, None for
+  * other URIs
+  * removes trailing ".gz", if any
+  * e.g.: local_url "file:///etc/passwd.gz" = Some "/etc/passwd"
+  *       local_url "http://...." = None *)
+val local_url: string -> string option
 
  (** "fold_left" like function on file lines, trailing newline is not passed to
  the given function *)