paths

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilePathToURI added in v0.5.0

func FilePathToURI(path string) (string, error)

func IsDir added in v0.4.1

func IsDir(path string) (bool, error)

func IsURI added in v0.4.0

func IsURI(ref string) bool

func ToAbsolute added in v0.5.0

func ToAbsolute(uri, relativeTo string) (string, error)

func URIToFilePath added in v0.5.0

func URIToFilePath(uri string) (string, error)

examples:

- unix file: file://laptop/some%20dir/file.tgz

- windows drive: file:///C:/Documents%20and%20Settings/file.tgz

- windows share: file://laptop/My%20Documents/file.tgz

Types

This section is empty.

Jump to

Keyboard shortcuts

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