os2

package
v0.0.0-...-3831271 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PermFile is a FileMode for regular files without world permission bits.
	PermFile fs.FileMode = 0660
	// PermDirectory is a FileMode for directories without world permission bits.
	PermDirectory fs.FileMode = 0770
)

Variables

This section is empty.

Functions

func Create

func Create(name string) (*os.File, error)

Create is identical to os.Create except uses 0660 permission rather than 0666, to exclude world read/write bit.

func Mkdir

func Mkdir(path string) error

Mkdir is identical to os.Mkdir except permission of 0770 is used.

func MkdirAll

func MkdirAll(path string) error

MkdirAll is identical to os.MkdirAll except permission of 0770 is used.

func WriteFile

func WriteFile(name string, data []byte) error

WriteFile is identical to os.WriteFile except permission of 0660 is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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