fsutil

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(sourcePath string, targetPath string, overwrite bool) error

Copy copies a file to a destination path

func IsRecursiveSymlink(f os.FileInfo, symlinkPath string) bool

IsRecursiveSymlink checks if the provided non-resolved file info is a recursive symlink

func ReadFile

func ReadFile(path string, limit int64) ([]byte, error)

ReadFile reads a file with a given limit

func WriteToFile

func WriteToFile(data []byte, filePath string) error

WriteToFile writes data to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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