Documentation
¶
Index ¶
- func AbsUpdate(paths ...*string)
- func CopyFile(source, target string) (err error)
- func CreateDir(dir string) (err error)
- func CreateSymlink(source, link string, force bool, abs bool) (err error)
- func IsShortcutStat(stat fs.FileInfo) bool
- func IsSymlinkStat(stat fs.FileInfo) bool
- func OverwriteOnExist(source, target string) error
- func RemoveSymlink(path string, force bool) (err error)
- func SkipOnExist(source, target string) error
- func WalkDir(root string, fn fs.WalkDirFunc, maxDepth ...int) (err error)
- type CopyOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSymlink ¶
CreateSymlink creates a symlink at path pointing to target.
func IsShortcutStat ¶
IsShortcutStat checks if the file is a shortcut.
func IsSymlinkStat ¶
IsSymlinkStat checks if the given file info is a symlink.
func OverwriteOnExist ¶
func RemoveSymlink ¶
RemoveSymlink deletes a symlink or a .lnk file, if force is true, it will delete the target file as well.
func SkipOnExist ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.