Documentation ¶
Index ¶
- Constants
- Variables
- func AppConfigDirOrDefault(defaultAppConfigDir string, toolName string) string
- func GetFiles(root string) ([]string, error)
- func HomeDirOrDefault(defaultDirectory string) string
- func IsUnixOS() bool
- func IsWindowsOS() bool
- func SyncDirectory(source, destination string) error
- func UserConfigDirOrDefault(defaultConfigDir string) string
- type PathInfo
Constants ¶
View Source
const ( UnixPathSeparator = "/" WindowsPathSeparator = "\\" )
Variables ¶
View Source
var RemoveSourceDirAfterSync = true
Remove source directory after successful sync
View Source
var ( // Separator evaluated at runtime Separator = string(os.PathSeparator) )
Functions ¶
func AppConfigDirOrDefault ¶ added in v0.0.37
AppConfigDirOrDefault returns the app config directory
func HomeDirOrDefault ¶
HomeDirectory returns the home directory or defaultDirectory in case of error
func IsWindowsOS ¶
func IsWindowsOS() bool
func SyncDirectory ¶ added in v0.0.41
SyncDirectory sync all files and non-empty directories from source to destination folder optionally removes source directory and removes source
func UserConfigDirOrDefault ¶ added in v0.0.37
UserConfigDirOrDefault returns the user config directory or defaultConfigDir in case of error
Types ¶
Click to show internal directories.
Click to hide internal directories.