fs

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERROR_FILE_NOT_EXISTS = "File not exists"
)

Variables

View Source
var (
	// Permission MODES
	DIR_MODE  int = 0755
	FILE_MODE int = 0755
)

Functions

func CheckTempDir added in v0.1.4

func CheckTempDir(path string) error

func CopyDir added in v0.1.4

func CopyDir(targetDirPath string, destination string, globalIgnoreFiles []string, context map[string]any)

func CopyFile

func CopyFile(target, destination string) error

Copye the specified file to the specified destination with the passed mode

func CopyTemplateFile added in v0.1.4

func CopyTemplateFile(target, destination string, mode os.FileMode, templateData map[string]any) error

Before copy the file parses the template

func OpenFile added in v0.1.4

func OpenFile(filePath string) (afero.File, error)

Open a specified file if file don't exists return an error

Types

This section is empty.

Jump to

Keyboard shortcuts

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