package symlink

import "github.com/docker/cli/components/engine/pkg/symlink"

Index

Functions

func EvalSymlinks(path string) (string, error)

EvalSymlinks returns the path name after the evaluation of any symbolic links. If path is relative the result will be relative to the current directory, unless one of the components is an absolute symbolic link. This version has been updated to support long paths prepended with `\\?\`.

func FollowSymlinkInScope

func FollowSymlinkInScope(path, root string) (string, error)

FollowSymlinkInScope is a wrapper around evalSymlinksInScope that returns an absolute path. This function handles paths in a platform-agnostic manner.

Source Files

fs.go fs_unix.go

Version
v17.10.0-ce-rc1+incompatible
Published
Oct 4, 2017
Platform
linux/amd64
Imports
6 packages
Last checked
11 seconds ago

Tools for package owners.