utilfiles

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package utildownload contains internal helper functions related to file IO utilized by the primary mobsql app logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir(subFolder string) string

func FileChecksum

func FileChecksum(filepath string) string

func FileExists

func FileExists(filepath string) bool

func FileSizeMB

func FileSizeMB(filepath string) float64

func TempDir

func TempDir(prefix string) (string, error)

TempDir creates a temporary directory in the platform-specific temporary directory - if that fails it uses the tmp subfolder in CacheDir (e.g. ~/.cache/mobroute/tmp).

This is a workaround for certain platform that fail with the default TempDir such as Android which as of recent versions uses /data/local/tmp which is not writable

func UnzipZipArchive

func UnzipZipArchive(validFiles []string, sourceZipPath, destPath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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