chmod

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunChmod

func RunChmod(w io.Writer, args []string, opts ChmodOptions) error

RunChmod changes file mode bits

Types

type ChmodOptions

type ChmodOptions struct {
	Recursive bool   // -R: change files and directories recursively
	Verbose   bool   // -v: output a diagnostic for every file processed
	Changes   bool   // -c: like verbose but report only when a change is made
	Silent    bool   // -f: suppress most error messages
	Reference string // --reference: use RFILE's mode instead of MODE values
}

ChmodOptions configures the chmod command behavior

Jump to

Keyboard shortcuts

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