fs

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendFile added in v0.1.7

func AppendFile(
	filePath string,
	content []byte,
) *errorwrapper.Wrapper

func AppendFileUsingLock added in v0.1.7

func AppendFileUsingLock(
	filePath string,
	content []byte,
) *errorwrapper.Wrapper

func AppendStringFile added in v0.1.7

func AppendStringFile(
	filePath string,
	content string,
) *errorwrapper.Wrapper

func AppendStringFileUsingLock added in v0.1.7

func AppendStringFileUsingLock(
	filePath string,
	content string,
) *errorwrapper.Wrapper

func CopyFile

func CopyFile(srcPath, dstPath string) *errorwrapper.Wrapper

CopyFile Future ref: https://stackoverflow.com/a/21067803

func CreateDirectoryAllDefault

func CreateDirectoryAllDefault(location string) *errorwrapper.Wrapper

func CreateDirectoryAllUptoParent

func CreateDirectoryAllUptoParent(location string) *errorwrapper.Wrapper

func GetFileName

func GetFileName(location string) string

func IsDirectory

func IsDirectory(location string) bool

func IsExistButDirectory added in v0.1.7

func IsExistButDirectory(location string) bool

func IsPathExists

func IsPathExists(location string) bool

func ParentDir

func ParentDir(location string) string

func Read

func Read(location string, filename string) *errbyte.Results

func ReadFile

func ReadFile(filePath string) *errbyte.Results

func Remove

func Remove(location string) *errorwrapper.Wrapper

Remove Reference : https://t.ly/xnAe

func Rename

func Rename(srcPath, dstPath string) *errorwrapper.Wrapper

func SafeRemove

func SafeRemove(location string) *errorwrapper.Wrapper

SafeRemove Reference : https://t.ly/xnAe

func Write

func Write(location string, filename string, content []byte) *errorwrapper.Wrapper

func WriteFile

func WriteFile(
	filePath string,
	content []byte,
) *errorwrapper.Wrapper

func WriteFileLock added in v0.1.6

func WriteFileLock(
	filePath string,
	content []byte,
) *errorwrapper.Wrapper

func WriteStringLinesToFile

func WriteStringLinesToFile(
	filePath string,
	contentLines []string,
) *errorwrapper.Wrapper

func WriteStringLinesToFileUsingLock added in v0.1.6

func WriteStringLinesToFileUsingLock(
	filePath string,
	contentLines []string,
) *errorwrapper.Wrapper

func WriteStringToFile

func WriteStringToFile(filePath string, content string) *errorwrapper.Wrapper

func WriteStringToFileUsingLock added in v0.1.6

func WriteStringToFileUsingLock(
	filePath string,
	content string,
) *errorwrapper.Wrapper

Types

This section is empty.

Jump to

Keyboard shortcuts

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