osutil

package
v0.40.4 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IsWindows     = false
	PathDelimiter = string(byte(filepath.Separator))
)

Variables

View Source
var (
	SystemVolume   = ""
	FileSystemRoot = PathDelimiter
)

Functions

func IsWindowsSharingViolation

func IsWindowsSharingViolation(err error) bool

IsWindowsSharingViolation returns if the error is a Windows sharing violation

func PathToNative

func PathToNative(p string) string

PathToNative will convert a Unix path into the Windows-native variant (only if running on a Windows machine)

func StartsWithWindowsVolume

func StartsWithWindowsVolume(p string) bool

StartsWithWindowsVolume checks if the given string begins with a valid Windows Volume e.g. "C:" or "Z:"

Types

This section is empty.

Jump to

Keyboard shortcuts

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