package osutil

import "github.com/docker/buildx/util/osutil"

Index

Functions

func GetLongPathName

func GetLongPathName(path string) (string, error)

GetLongPathName converts Windows short pathnames to full pathnames. For example C:\Users\ADMIN~1 --> C:\Users\Administrator.

func GetWd

func GetWd() string

GetWd retrieves the current working directory.

On Windows, this function will return the long path name version of the path.

func IsLocalDir

func IsLocalDir(c string) bool

func SanitizePath

func SanitizePath(path string) string

func ToAbs

func ToAbs(path string) string

Source Files

path.go path_windows.go

Version
v0.13.0-rc2
Published
Feb 29, 2024
Platform
windows/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.