utildownload

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: GPL-2.0 Imports: 8 Imported by: 0

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

func DownloadURICachedFilepath(filepathPrefix, uri, extension string) (string, bool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL