fs

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: MPL-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(fullFilePath, destFilePath string) error

func FileExists

func FileExists(filePath string) bool

func FileExistsOrFail

func FileExistsOrFail(filePath string)

func GetCurrentPath

func GetCurrentPath() (string, error)

func IsDirectory

func IsDirectory(path string) (bool, error)

func JoinPath

func JoinPath(parts ...string) string

func MkDir

func MkDir(dirPath string) error

func RTrimDirPath

func RTrimDirPath(inputDir string) string

func ReadCsvFile

func ReadCsvFile(filePath string, lineParser func(int, []string) error, lineSep rune, leastColumnsCount int) (err error)

func ReadFile

func ReadFile(filePath string) ([]byte, error)

func ReadFileString

func ReadFileString(fullFilePath string) (string, error)

func ReadFileStringSecure

func ReadFileStringSecure(fullFilePath string) string

func ReadTextFile

func ReadTextFile(filePath string, lineParser func(line string, lineNumber int) error) error

func RmFile

func RmFile(filePath string) bool

func TouchFile

func TouchFile(fullFilePath string) error

func WriteFileString

func WriteFileString(fullFilePath, data string, 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