fsutils

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir

func CopyDir(sourceFS, targetFS afero.Fs, sourcePath, targetPath string, skipIfExists bool) error

func CurrentDir

func CurrentDir() string

func FindDirsWithContracts

func FindDirsWithContracts(fs afero.Fs, path string, match func(string) bool) ([]string, error)

func GatherDirs

func GatherDirs(fs afero.Fs, projectsDir string) ([]os.FileInfo, error)

func GatherEntries

func GatherEntries(fs afero.Fs, path string) ([]entry.Entry, error)

func GatherMatchedEntriesInDir

func GatherMatchedEntriesInDir(fs afero.Fs, path string, match func(info os.FileInfo) bool) ([]string, error)

func GetFileExt

func GetFileExt(path string) string

func IsHiddenFile

func IsHiddenFile(path string) bool

func MakeZipArchive

func MakeZipArchive(sourceFS, targetFS afero.Fs, sourcePath, targetPath string) error

func ReadFile

func ReadFile(fs afero.Fs, path string) ([]byte, error)

func RemoveTmpDirs

func RemoveTmpDirs(fs afero.Fs, paths ...string) error

func RemoveWithSubdirs

func RemoveWithSubdirs(fs afero.Fs, path, name string) error

func ValidDirectories

func ValidDirectories(fs afero.Fs, paths ...string) error

func WriteFile

func WriteFile(fs afero.Fs, path string, content string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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