Documentation ¶
Index ¶
- func CopyFile(srcPath, dstPath string) *errorwrapper.Wrapper
- func CreateDirectoryAll(location string, mode os.FileMode) *errorwrapper.Wrapper
- func CreateDirectoryAllDefault(location string) *errorwrapper.Wrapper
- func CreateDirectoryAllUptoParent(location string, fileMode os.FileMode) *errorwrapper.Wrapper
- func CreateDirectoryAllUptoParentDefault(location string) *errorwrapper.Wrapper
- func GetDirFileName(location string) (parentDir, fileName string)
- func GetFileName(location string) string
- func IsDirectory(location string) bool
- func IsExistButDirectory(location string) bool
- func IsPathExists(location string) bool
- func MoveFile(srcPath, dstPath string) *errorwrapper.Wrapper
- 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 SafeRemove(location string) *errorwrapper.Wrapper
- func Write(location string, filename string, content []byte) *errorwrapper.Wrapper
- func WriteFile(filePath string, content []byte) *errorwrapper.Wrapper
- func WriteStringToFile(filePath string, content string) *errorwrapper.Wrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFile ¶
func CopyFile(srcPath, dstPath string) *errorwrapper.Wrapper
CopyFile Future ref: https://stackoverflow.com/a/21067803
func CreateDirectoryAll ¶
func CreateDirectoryAll( location string, mode os.FileMode, ) *errorwrapper.Wrapper
func CreateDirectoryAllDefault ¶ added in v0.1.3
func CreateDirectoryAllDefault(location string) *errorwrapper.Wrapper
func CreateDirectoryAllUptoParent ¶ added in v0.1.3
func CreateDirectoryAllUptoParent( location string, fileMode os.FileMode, ) *errorwrapper.Wrapper
func CreateDirectoryAllUptoParentDefault ¶ added in v0.3.1
func CreateDirectoryAllUptoParentDefault(location string) *errorwrapper.Wrapper
func GetDirFileName ¶ added in v0.3.3
func GetFileName ¶ added in v0.1.3
func IsDirectory ¶ added in v0.1.2
func IsExistButDirectory ¶ added in v0.1.7
func IsPathExists ¶ added in v0.1.2
func MoveFile ¶ added in v0.1.5
func MoveFile(srcPath, dstPath string) *errorwrapper.Wrapper
MoveFile move file path from source to destination
func Remove ¶ added in v0.1.3
func Remove(location string) *errorwrapper.Wrapper
Remove Reference : https://t.ly/xnAe
func SafeRemove ¶ added in v0.1.3
func SafeRemove(location string) *errorwrapper.Wrapper
SafeRemove Reference : https://t.ly/xnAe
func Write ¶ added in v0.1.2
func Write(location string, filename string, content []byte) *errorwrapper.Wrapper
func WriteFile ¶ added in v0.1.2
func WriteFile(filePath string, content []byte) *errorwrapper.Wrapper
func WriteStringToFile ¶ added in v0.1.2
func WriteStringToFile(filePath string, content string) *errorwrapper.Wrapper
Types ¶
This section is empty.
Source Files ¶
- CopyFile.go
- CreateDirectoryAll.go
- CreateDirectoryAllDefault.go
- CreateDirectoryAllUptoParent.go
- CreateDirectoryAllUptoParentDefault.go
- GetDirFileName.go
- GetFileName.go
- IsDirectory.go
- IsExistButDirectory.go
- IsPathExists.go
- MoveFile.go
- ParentDir.go
- Read.go
- ReadFile.go
- Remove.go
- SafeRemove.go
- Write.go
- WriteFile.go
- WriteStringToFile.go
- copyFileContents.go
Click to show internal directories.
Click to hide internal directories.