package opam-repository

  1. Overview
  2. Docs

Configuration init and handling of downloading commands

val download : overwrite:bool -> ?compress:bool -> ?checksum:OpamHash.t -> OpamUrl.t -> OpamFilename.Dir.t -> OpamFilename.t OpamProcess.job

downloads a file from an URL, using Curl, Wget, or a custom configured tool, to the given directory. Returns the downloaded filename.

  • raises Failure

    if the checksum is specified and doesn't match

val download_as : overwrite:bool -> ?compress:bool -> ?checksum:OpamHash.t -> OpamUrl.t -> OpamFilename.t -> unit OpamProcess.job

As download, but with a specified output filename.

OCaml

Innovation. Community. Security.