fileutil

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeParent

func ChangeParent(srcPath string, srcDir string, dstDir string) (dstPath string, err error)

func CopyFileContent

func CopyFileContent(src string, dst string) error

func LowercaseAll

func LowercaseAll(dir string) error

func MoveAllFileContent

func MoveAllFileContent(srcDir string, dstDir string) error

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

func MoveFileContent(src string, dst string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL