osutil

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Windows = "windows"
	Darwin  = "darwin"
)
View Source
const (
	ExitOK    exitCode = 0
	ExitError exitCode = 1
)
View Source
const DirPermission = 0o755

Variables

View Source
var (
	// PartialWindowsForbiddenCharRegex is used to match the strings that contain forbidden
	// characters in Windows' file names. This does not include also forbidden
	// forward and back slash characters because their presence will cause a new
	// directory to be created.
	PartialWindowsForbiddenCharRegex = regexp.MustCompile(`<|>|:|"|\||\?|\*`)
	// CompleteWindowsForbiddenCharRegex is like windowsForbiddenRegex but includes
	// forward and backslashes.
	CompleteWindowsForbiddenCharRegex = regexp.MustCompile(
		`<|>|:|"|\||\?|\*|/|\\`,
	)
	// MacForbiddenCharRegex is used to match the strings that contain forbidden
	// characters in macOS' file names.
	MacForbiddenCharRegex = regexp.MustCompile(`:`)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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