file

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendFile added in v0.6.0

func AppendFile(filePath string, text string) bool

func AppendFileBytes added in v0.6.0

func AppendFileBytes(filePath string, data []byte) bool

func CopyFile added in v0.6.0

func CopyFile(srcFilePath string, destFilePath string) bool

func DeleteDirs

func DeleteDirs(path string) bool

func DeleteFile

func DeleteFile(filePath string) bool

func DirectoryExists

func DirectoryExists(dirPath string) bool

func FileExists

func FileExists(filePath string) bool

func MkDirs

func MkDirs(path string) bool

func ReadFile

func ReadFile(filePath string) string

func ReadFileBytes

func ReadFileBytes(filePath string) []byte

func ReadFileLines added in v0.6.0

func ReadFileLines(filePath string) []string

func RenameFile added in v0.6.0

func RenameFile(srcFilePath string, destFilePath string) bool

func WriteFile

func WriteFile(filePath string, text string) bool

func WriteFileBytes

func WriteFileBytes(filePath string, data []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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