safeio

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAllowed = errors.New("safeio: operation not allowed")

Functions

func OpenFile

func OpenFile(r *rt.Runtime, name string, flag int, perm fs.FileMode) (*os.File, error)

func RemoveFile

func RemoveFile(r *rt.Runtime, name string) error

func RenameFile

func RenameFile(r *rt.Runtime, oldName, newName string) error

func TempFile

func TempFile(r *rt.Runtime, dir string, pattern string) (*os.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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