fs

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MPL-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

Variables

This section is empty.

Functions

func CopyFile added in v1.3.7

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 added in v1.3.7

func ReadFileString(fullFilePath string) (string, error)

func ReadFileStringSecure added in v1.3.7

func ReadFileStringSecure(fullFilePath string) string

func ReadFilesInDirectory

func ReadFilesInDirectory(dirPath string) ([]os.FileInfo, error)

func ReadTextFile

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

func RmFile

func RmFile(filePath string) bool

func TouchFile added in v1.3.7

func TouchFile(fullFilePath string) error

func WriteFileString added in v1.3.7

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