fileperm

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: GPL-3.0 Imports: 1 Imported by: 12

Documentation

Index

Constants

View Source
const (
	//other rwx
	OX os.FileMode = 1 << (iota)
	OW
	OR

	//group rwx
	GX
	GW
	GR

	//user rwx
	UX
	UW
	UR
)
View Source
const (
	AX = OX | GX | UX
	AW = OW | GW | UW
	AR = OR | GR | UR
)

all

View Source
const (
	ORW = OR | OW
	ORX = OR | OX
	OWX = OW | OX
	OA  = OR | OW | OX

	GRW = GR | GW
	GRX = GR | GX
	GWX = GW | GX
	GA  = GR | GW | GX

	URW = UR | UW
	URX = UR | UX
	UWX = UW | UX
	UA  = UR | UW | UX

	ARW = AR | AW
	ARX = AR | AX
	AWX = AW | AX
	AA  = AR | AW | AX
)
View Source
const (
	//drwxr-xr-x
	Directory = os.ModeDir | UA | GRX | ORX

	//-rw-r--r--
	File = URW | GR | OR

	//-rwxr-xr-x
	Execute = UA | GRX | ORX

	//-rwxr-xr-x
	ShellScript = File | AX
)

Variables

This section is empty.

Functions

func SetPerm

func SetPerm(args ...os.FileMode) (rs os.FileMode)

func UndoPerm

func UndoPerm(flags os.FileMode, args ...os.FileMode) os.FileMode

Types

This section is empty.

Jump to

Keyboard shortcuts

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