Documentation ¶
Index ¶
- func AppendFile(filePath string, content []byte) *errorwrapper.Wrapper
- func AppendFileUsingLock(filePath string, content []byte) *errorwrapper.Wrapper
- func AppendStringFile(filePath string, content string) *errorwrapper.Wrapper
- func AppendStringFileUsingLock(filePath string, content string) *errorwrapper.Wrapper
- func CopyFile(srcPath, dstPath string) *errorwrapper.Wrapper
- func CreateDirectoryAllDefault(location string) *errorwrapper.Wrapper
- func CreateDirectoryAllUptoParent(location string) *errorwrapper.Wrapper
- func GetFileName(location string) string
- func IsDirectory(location string) bool
- func IsExistButDirectory(location string) bool
- func IsPathExists(location string) bool
- func ParentDir(location string) string
- func Read(location string, filename string) *errbyte.Results
- func ReadFile(filePath string) *errbyte.Results
- func Remove(location string) *errorwrapper.Wrapper
- func Rename(srcPath, dstPath string) *errorwrapper.Wrapper
- func SafeRemove(location string) *errorwrapper.Wrapper
- func Write(location string, filename string, content []byte) *errorwrapper.Wrapper
- func WriteFile(filePath string, content []byte) *errorwrapper.Wrapper
- func WriteFileLock(filePath string, content []byte) *errorwrapper.Wrapper
- func WriteStringLinesToFile(filePath string, contentLines []string) *errorwrapper.Wrapper
- func WriteStringLinesToFileUsingLock(filePath string, contentLines []string) *errorwrapper.Wrapper
- func WriteStringToFile(filePath string, content string) *errorwrapper.Wrapper
- func WriteStringToFileUsingLock(filePath string, content string) *errorwrapper.Wrapper
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 IsDirectory ¶
func IsExistButDirectory ¶ added in v0.1.7
func IsPathExists ¶
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 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.
Source Files ¶
- AppendFile.go
- AppendFileUsingLock.go
- AppendStringFile.go
- AppendStringFileUsingLock.go
- CopyFile.go
- CreateDirectoryAllDefault.go
- CreateDirectoryAllUptoParent.go
- GetFileName.go
- IsDirectory.go
- IsExistButDirectory.go
- IsPathExists.go
- ParentDir.go
- Read.go
- ReadFile.go
- Remove.go
- Rename.go
- SafeRemove.go
- Write.go
- WriteFile.go
- WriteFileLock.go
- WriteStringLinesToFile.go
- WriteStringLinesToFileUsingLock.go
- WriteStringToFile.go
- WriteStringToFileUsingLock.go
- appendFileContent.go
- copyFileContents.go
- vars.go
- writeExistingFileContent.go
- writeNewFileContent.go
Click to show internal directories.
Click to hide internal directories.