Documentation ¶
Index ¶
- func ChangeParent(srcPath string, srcDir string, dstDir string) (dstPath string, err error)
- func CopyAllFileContent(srcDir string, dstDir string) error
- func CopyFileContent(src string, dst string) error
- func Exists(path string) bool
- func LowercaseAll(dir string) error
- func MoveAllFileContent(srcDir string, dstDir string) error
- func MoveFileContent(src string, dst string) error
- func NotExists(path string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeParent ¶
func CopyAllFileContent ¶ added in v0.7.0
CopyAllFileContent copies all files from srcDir to dstDir recursively. Only files' name and their content are guaranteed same. If the existing files and the coping files have the same path, the existing files will be overridden.
func CopyFileContent ¶
func LowercaseAll ¶
func MoveAllFileContent ¶
MoveAllFileContent moves all files from srcDir to dstDir recursively. Only files' name and their content are guaranteed same. If the existing files and the moving files have the same path, the existing files will be overridden. This prevents os.Rename to panic "invalid cross-device link".
func MoveFileContent ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.