fsutils

package
v0.4.19 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

CacheDir returns the directory used for caching

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 HomeDir

func HomeDir() string

func SetCacheDir

func SetCacheDir(dir string)

SetCacheDir sets the tunnel cacheDir

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

func RequiredExt(exts ...string) WalkDirRequiredFunc

func RequiredFile

func RequiredFile(fileNames ...string) WalkDirRequiredFunc

Jump to

Keyboard shortcuts

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