kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/cp/filespec.go

type fileSpec

type pathSpec

type localPath

func newLocalPath(fileName string) localPath {}

func (p localPath) String() string {}

func (p localPath) Dir() localPath {}

func (p localPath) Base() localPath {}

func (p localPath) Clean() localPath {}

func (p localPath) Join(elem pathSpec) localPath {}

func (p localPath) Glob() (matches []string, err error) {}

func (p localPath) StripSlashes() localPath {}

func isRelative(base, target localPath) bool {}

type remotePath

func newRemotePath(fileName string) remotePath {}

func (p remotePath) String() string {}

func (p remotePath) Dir() remotePath {}

func (p remotePath) Base() remotePath {}

func (p remotePath) Clean() remotePath {}

func (p remotePath) Join(elem pathSpec) remotePath {}

func (p remotePath) StripShortcuts() remotePath {}

func (p remotePath) StripSlashes() remotePath {}

// strips trailing slash (if any) both unix and windows style
func stripTrailingSlash(file string) string {}

func stripLeadingSlash(file string) string {}

// stripPathShortcuts removes any leading or trailing "../" from a given path
func stripPathShortcuts(p string) string {}