package longpath
import "github.com/docker/docker/pkg/longpath"
Package longpath introduces some constants and helper functions for handling long paths in Windows.
Long paths are expected to be prepended with "\\?\" and followed by either a drive letter, a UNC server\share, or a volume identifier.
Index ¶
Constants ¶
const Prefix = longPathPrefix
Prefix is the longpath prefix for Windows file paths.
Deprecated: this const is only used internally, and will be removed in the next release
Functions ¶
func AddPrefix ¶
AddPrefix adds the Windows long path prefix to the path provided if it does not already have it.
func MkdirTemp ¶
MkdirTemp is the equivalent of os.MkdirTemp, except that on Windows the result is in Windows longpath format. On Unix systems it is equivalent to os.MkdirTemp.
Source Files ¶
- Version
- v27.3.0-rc.2+incompatible
- Published
- Sep 18, 2024
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 1 minute ago –
Tools for package owners.