Documentation ¶
Index ¶
- func CreateDirIfNotExist(dir string) error
- func DownloadFromURLToLocation(location string, url string) error
- func ForceSymLink(targetPath string, sourcePath string)
- func IsSymlink(path string) bool
- func Move(source string, destination string) error
- func RemoveDirIfExist(dir string) error
- func RemoveFileIfExist(file string) error
- func SetExecutable(file string) error
- func SymLink(targetPath string, sourcePath string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirIfNotExist ¶
CreateDirIfNotExist : create directory if directory does not exist
func DownloadFromURLToLocation ¶
downloadFromURLToLocation : download data from the given url to the given file location
func ForceSymLink ¶
ForceSymLink : create a symbolic link from sourcePath to targetPath, delete if already exists
func Move ¶
Move: move the given source file to the given destination, this function deals with copy between partitions
func RemoveDirIfExist ¶
RemoveDirIfExist: remove the given directoryc if exists and is a directory
func RemoveFileIfExist ¶
RemoveFileIfExist: remove the given file if exists and is a regular file
func SetExecutable ¶
SetExecutable: set a file as executable, with 0755 permissions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.