package symlink

import "github.com/dotcloud/docker/pkg/symlink"

Index

Functions

func FollowSymlinkInScope

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

FollowSymlink will follow an existing link and scope it to the root path provided. The role of this function is to return an absolute path in the root or normalize to the root if the symlink leads to a path which is outside of the root. Errors encountered while attempting to follow the symlink in path will be reported. Normalizations to the root don't constitute errors.

Source Files

fs.go

Version
v1.3.2
Published
Nov 24, 2014
Platform
js/wasm
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.