Documentation ¶
Index ¶
- func CopyFile(src string, dest string) error
- func CopyFolder(source string, dest string) (err error)
- func CreateFile(path string, content string) error
- func CreateFolder(path ...string) string
- func Exists(name string) bool
- func FormatUnixPath(path string) string
- func FormatWindowsPath(path string) string
- func GetEnv(key string) string
- func IsDirEmpty(name string) (bool, error)
- func OverrideEnv(key string, value string)
- func PathJoin(elem ...string) string
- func ReadLines(filePath string) []string
- func RemoveContents(dir string) error
- func ReplaceByPrefix(filename string, prefix string, replace string) error
- func RoamingPath() string
- func SetFileAttributes(path string, attrs uint32) error
- func StartMenuPath() string
- func WriteToFile(name string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFile ¶
CreateFile creates / overwrites a file with content
func CreateFolder ¶
CreateFolder to create a folder and get its path
func FormatUnixPath ¶
FormatUnixPath to format a path for unix
func FormatWindowsPath ¶
FormatWindowsPath to format a path for windows
func IsDirEmpty ¶
IsDirEmpty determines if directory is empty
func RemoveContents ¶
RemoveContents remove contents of a specified directory
func ReplaceByPrefix ¶
ReplaceByPrefix replaces line in file starting with a specific prefix
func RoamingPath ¶
func RoamingPath() string
RoamingPath returns the user roaming path through APPDATA env var
func SetFileAttributes ¶
SetFileAttributes set attributes to a file
func WriteToFile ¶
WriteToFile reports writes content to a file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.