paths

package
v0.5.23 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 8

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 IsDevice added in v0.5.18

func IsDevice(path string) (present bool)

func IsDir

func IsDir(path string) (found bool)

func IsFile

func IsFile(path string) (found bool)

func IsPipe added in v0.5.18

func IsPipe(fh *os.File) (piped 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