fileutils

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: Apache-2.0 Imports: 7 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSkipped = errors.New("skipped to download")

ErrSkipped is returned when the downloader did not attempt to download the specified file.

Functions

func CachedFile added in v0.18.0

func CachedFile(f limayaml.File) (string, error)

CachedFile checks if a file is in the cache, validating the digest if it is available. Returns path in cache.

func DownloadFile

func DownloadFile(ctx context.Context, dest string, f limayaml.File, decompress bool, description string, expectedArch limayaml.Arch) (string, error)

DownloadFile downloads a file to the cache, optionally copying it to the destination. Returns path in cache.

func Errors added in v0.15.1

func Errors(errs []error) error

Errors compose multiple into a single error. Errors filters out ErrSkipped.

Types

This section is empty.

Jump to

Keyboard shortcuts

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