paths

package
v0.4.14 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureBinary

func EnsureBinary(binaryName string, expectedChecksum string) error

func EnsureDirectory

func EnsureDirectory(dir string) error

func GetBinaryPath

func GetBinaryPath(binaryName string) (string, error)

func GetBinarySHA1Hash

func GetBinarySHA1Hash(binaryName string) (string, error)

func GetFileSHA1Hash

func GetFileSHA1Hash(path string) (string, error)

func IncludeFiles

func IncludeFiles(path string, filenames ...string) (bool, error)

func MoveFile

func MoveFile(srcPath, targetPath string) error

func Watch

func Watch(ctx context.Context, path string, handle WatchHandle) error

Types

type WatchHandle

type WatchHandle func(watchErr error, watchEvent fsnotify.Event)

Jump to

Keyboard shortcuts

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