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.21.3
Published
Mar 17, 2025
Platform
windows/amd64
Imports
3 packages
Last checked
2 hours ago

Tools for package owners.