fsutils

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(src, dst string) (int64, error)

CopyFile copies the file content from scr to dst

func DirExists

func DirExists(path string) bool

func FileExists added in v0.52.0

func FileExists(filename string) bool

func HomeDir

func HomeDir() string

func TrivyHomeDir added in v0.54.0

func TrivyHomeDir() string

func WalkDir

func WalkDir(fsys fs.FS, root string, required WalkDirRequiredFunc, fn WalkDirFunc) error

Types

type WalkDirFunc

type WalkDirFunc func(path string, d fs.DirEntry, r io.Reader) error

type WalkDirRequiredFunc

type WalkDirRequiredFunc func(path string, d fs.DirEntry) bool

func RequiredExt added in v0.45.0

func RequiredExt(exts ...string) WalkDirRequiredFunc

func RequiredFile added in v0.45.0

func RequiredFile(fileNames ...string) WalkDirRequiredFunc

Jump to

Keyboard shortcuts

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