Documentation ¶
Overview ¶
Package utildownload contains some internal download functions utilized by the primary mobsql app logic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowFileURIs = false
Functions ¶
func DownloadURICachedFilepath ¶
DownloadURICachedFilepath downloads the passed URI and caches into a file with a checksummed name. Running this same function twice for the same input URI will nop download and just return the previously downloaded filepath.
In the case that a file:// URI is passed & the AllowFileURIs setting is enabled, this function just returns the passed URI / nops.
The return values are:
the determined filepath, whether a downloaded occured, errorcode
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.