ospath

package
v0.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// DisallowedUVMMountPrefixes represents common locations within UVM
	// where we do not want mounts to happen from customer perspective.
	DisallowedUVMMountPrefixes = []string{
		`C:\Windows`,
		`C:\mounts`,
		`C:\EFI`,
		`C:\SandboxMounts`,
	}
)

Functions

func Join

func Join(os string, elem ...string) string

Join joins paths using the target OS's path separator.

func Sanitize

func Sanitize(path string, disallowedPrefixes []string) (string, error)

Sanitize validates and normalizes a Windows path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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