Function fetchFile

<Not available online>

Syncronously download a file from the internet

Parameters

url

URL to fetch

into

Path to download file into

prog

Progress function; first parameter is bytes downloaded so far, and second is total bytes to download. Return true to continue downloading, and false to interrupt. Note that interrupting does not automatically remove the file that was being downloaded
Return value
Returned data as JSON, or error on error
Examples0