paths

package
v0.5.16 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackupFile added in v0.5.6

func BackupFile(tag, path string) (err error)

BackupFile will copy a file to the same location, with the same file name and suffixed with the given tag and finally a datestamp in the format of: YYYYMMDDHHMMSS

func CopyFile added in v0.5.6

func CopyFile(src, dst string) (nBytes int64, err error)

func FileWritable

func FileWritable(path string) (writable bool)

func IsDir

func IsDir(path string) (found bool)

func IsFile

func IsFile(path string) (found bool)

func MakeDir

func MakeDir(path string, perm os.FileMode) error

func ReadFile

func ReadFile(path string) (content string, err error)

func WriteFile added in v0.5.10

func WriteFile(path string, content string) (err error)

func WriteFileWithPerms added in v0.5.10

func WriteFileWithPerms(path string, content string, perm fs.FileMode) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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