utils

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(fs billy.Filesystem, path string) (bool, error)

func MkdirTemp added in v0.9.7

func MkdirTemp(fs billy.Filesystem, baseDir, pattern string) (string, error)

MkdirTemp creates a temporary directory in the appropriate system temp directory using the specified billy.Filesystem.

func ReadFile

func ReadFile(fs billy.Filesystem, path string) ([]byte, error)

func RemoveAll

func RemoveAll(fs billy.Filesystem, path string) error

RemoveAll function to recursively delete directories and files

func WriteFile

func WriteFile(fs billy.Filesystem, filename string, data []byte, perm os.FileMode) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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