Documentation ¶
Index ¶
- func AppendToFile(name string, content string) error
- func Cleanup(folders []string)
- 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 DownloadFile(filepath string, url string) error
- func Exists(name string) bool
- func FileContains(name string, text string) (bool, error)
- func FindElectronAppFolder(prefix string, source string) (string, error)
- func FormatUnixPath(path string) string
- func FormatWindowsPath(path string) string
- func IsDirEmpty(name string) (bool, error)
- func PathJoin(elem ...string) string
- func RemoveContents(dir string) error
- func Replace(filename string, old string, new 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 AppendToFile ¶
AppendToFile appends content to a file
func CreateFile ¶
CreateFile creates / overwrites a file with content
func CreateFolder ¶
CreateFolder to create a folder and get its path
func DownloadFile ¶
DownloadFile will download a url to a local file
func FileContains ¶
FileContains reports if a file contains text
func FindElectronAppFolder ¶
FindElectronAppFolder returns the app electron folder
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 writes content to a file
Types ¶
This section is empty.