files

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	F_PRIVILEGED uint32 = 1 << iota
	F_FORCESAVE
	F_CREATEDIR
)

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) (n int64, err error)

func Ensure

func Ensure[T ~string | ~[]byte](path string, data T, flags ...uint32) error

func EnsureCopy

func EnsureCopy(path string, r io.Reader, flags ...uint32) error

func Exists

func Exists(path string) (bool, error)

func Shortcut

func Shortcut(src, dst string) error

func WithEnsurance

func WithEnsurance(path string, writeFunc func(*os.File) error, flags ...uint32) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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