fileutil

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 7 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 CopyAllFileContent added in v0.7.0

func CopyAllFileContent(srcDir string, dstDir string) error

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 CopyFileContent(src string, dst string) error

func Exists added in v0.7.0

func Exists(path string) bool

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

func NotExists added in v0.7.0

func NotExists(path string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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