package opam-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val download : overwrite:bool -> ?compress:bool -> ?checksum:string -> OpamFilename.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. FIXME: The source OpamFilename.t is indeed a URL.

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

As download, but with a specified output filename.