Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasWindowsDrivePrefix ¶
HasWindowsDrivePrefix reports whether path begins with a Windows drive designator such as C: independently of the host operating system.
func IsWindowsDriveHost ¶
IsWindowsDriveHost reports whether a file URI authority is a drive such as C:.
func IsWindowsDriveURIPath ¶
IsWindowsDriveURIPath reports whether path uses the /C:/ form produced by a hierarchical Windows file URI.
Types ¶
type FileURI ¶
type FileURI struct {
// contains filtered or unexported fields
}
FileURI is a parsed local file URI. It keeps the original URL form so path joining can preserve hierarchical and opaque file URI representations.
func Parse ¶
Parse parses hierarchical and opaque file URIs using the same lexical rules for every FileIO consumer.
func (FileURI) JoinPath ¶
JoinPath appends path elements while retaining the URI's hierarchical or opaque representation.
func (FileURI) LocalPath ¶
LocalPath returns the decoded local path. When windows is true, Windows drive authorities and /C:/ URI paths are converted to native drive-shaped paths.
func (FileURI) LocalPathForOS ¶
LocalPathForOS returns the decoded local path using the running host's file system semantics.