filesystem

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDirectoryExists

func EnsureDirectoryExists(path string) error

EnsureDirectoryExists creates a directory if it does not exist it returns an error if it fails

func EnsureSymbolicLink(source, target string) error

EnsureSymbolicLink preserves a correct link and replaces any other target.

func ExtractBinary

func ExtractBinary(compressed []byte, destFile string) error

ExtractBinary extracts a zstd-compressed binary and installs it to destFile. TODO: get the SHA of each binary and compare it to the expected SHA

func FileExists

func FileExists(path string) bool

FileExists checks if a file exists it returns true if the file exists, false otherwise

Types

This section is empty.

Jump to

Keyboard shortcuts

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