fileutil

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

https://stackoverflow.com/a/56314145

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy added in v0.15.0

func Copy(srcFile, dstFile string) error

func CopyDirectory added in v0.15.0

func CopyDirectory(scrDir, dest string) error

func CopyFile

func CopyFile(src string, dst string) error

func CopyFileMode

func CopyFileMode(src string, dst string, fileMode os.FileMode) error
func CopySymLink(source, dest string) error

func CreateIfNotExists added in v0.15.0

func CreateIfNotExists(dir string, perm os.FileMode) error

func Exists added in v0.15.0

func Exists(filePath string) bool

func FilesIdentical

func FilesIdentical(f1 string, f2 string) (bool, error)

func MD5Path

func MD5Path(path string) ([]byte, error)

func WriteFile added in v0.15.0

func WriteFile(str string, dst string) error

func WriteFileMode added in v0.15.0

func WriteFileMode(str string, dst string, fileMode os.FileMode) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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