Fluminus.Util (fluminus v2.2.9) View Source
A collection of common methods in Fluminus.
Link to this section Summary
Functions
Downloads the given url to a destination path generated by the provided function.
Sanitises filename according to Unix standard.
Link to this section Functions
Specs
download((() -> {:ok, String.t()} | {:error, any()}), Path.t(), bool()) :: :ok | {:error, :exists | any()}
Downloads the given url to a destination path generated by the provided function.
This function will return {:error, :exists}
if the file already exists.
Specs
Specs
Sanitises filename according to Unix standard.