package containerfs

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

Index

Variables

var EnsureRemoveAll = os.RemoveAll

EnsureRemoveAll is an alias to os.RemoveAll on Windows

Functions

func CleanScopedPath

func CleanScopedPath(path string) string

CleanScopedPath prepares the given path to be combined with a mount path or a drive-letter. On Windows, it removes any existing driveletter (e.g. "C:"). The returned path is always prefixed with a filepath.Separator.

func ResolveScopedPath

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

ResolveScopedPath evaluates the given path scoped to the root. For example, if root=/a, and path=/b/c, then this function would return /a/b/c.

Deprecated: use symlink.FollowSymlinkInScope.

Source Files

containerfs.go rm_windows.go

Version
v25.0.3+incompatible
Published
Feb 6, 2024
Platform
windows/amd64
Imports
3 packages
Last checked
2 minutes ago

Tools for package owners.