Documentation ¶
Overview ¶
Package osutils provides additional functionalitly on Golangs `os` package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCopyFailed defines the error if copy operation failed. ErrCopyFailed = fmt.Errorf("copy failed") )
Functions ¶
func CreateDirectoryIfNotExists ¶ added in v0.7.0
CreateDirectoryIfNotExists creates a path recursive.
func CreateFileIfNotExists ¶ added in v0.7.0
CreateFileIfNotExists creates a file with the given file name (needs to include the path). If path doesn'T exist it returns an error.
func FileOrPathExists ¶
FileOrPathExists checks if a path or file exists.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.