(*
- * Copyright (C) 2003, HELM Team.
+ * Copyright (C) 2003:
+ * Stefano Zacchiroli <zack@cs.unibo.it>
+ * for the HELM Team http://helm.cs.unibo.it/
*
* This file is part of HELM, an Hypertextual, Electronic
* Library of Mathematics, developed at the Computer Science
* MA 02111-1307, USA.
*
* For details, see the HELM World-Wide-Web page,
- * http://cs.unibo.it/helm/.
+ * http://helm.cs.unibo.it/
*)
+ (** 'mkdir' failed, arguments are: name of the directory to be created and
+ failure reason *)
+exception Mkdir_failure of string * string
+
(** "fold_left" like function on file lines, trailing newline is not passed to
the given function *)
val fold_file : ('a -> string -> 'a) -> 'a -> string -> 'a
val hashtbl_sorted_fold :
('a -> 'b -> 'c -> 'c) -> ('a, 'b) Hashtbl.t -> 'c -> 'c
+ (** cp frontend *)
+val cp: string -> string -> unit
(** wget frontend, if output is given it is the destination file, otherwise
- standard wget rules are used *)
+ standard wget rules are used. Additionally this function support also the
+ "file://" scheme for file system addressing *)
val wget: ?output: string -> string -> unit
(** gzip frontend, if keep = true original file will be kept *)
val gzip: ?keep: bool -> string -> unit
val string_of_proc_status : Unix.process_status -> string
(** raw HTTP downloader, return Some the contents of downloaded resource or
- None if an error occured while downlaoding *)
+ None if an error occured while downloading. This function support also
+ "file://" scheme for filesystem resources *)
val http_get: string -> string option
+ (** 'iter' like method that iter over string slices (unspecified length) of a
+ remote resources fetched via HTTP GET requests *)
+val http_get_iter_buf: callback:(string -> unit) -> string -> unit