filepathshim

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 36

Documentation

Overview

This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/local-volume-release/src/code.cloudfoundry.org/goshims/filepathshim path/filepath

This file was generated by counterfeiter with command: counterfeiter -p -o /Users/pivotal/workspace/local-volume-release/src/code.cloudfoundry.org/goshims/filepathshim path/filepath

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filepath

type Filepath interface {
	Match(pattern, name string) (matched bool, err error)
	Glob(pattern string) (matches []string, err error)
	Clean(path string) string
	ToSlash(path string) string
	FromSlash(path string) string
	SplitList(path string) []string
	Split(path string) (dir string, file string)
	Join(elem ...string) string
	Ext(path string) string
	EvalSymlinks(path string) (string, error)
	Abs(path string) (string, error)
	Rel(basepath, targpath string) (string, error)
	Walk(root string, walkFn filepath.WalkFunc) error
	Base(path string) string
	Dir(path string) string
	VolumeName(path string) string
	IsAbs(path string) bool
}

type FilepathShim

type FilepathShim struct{}

func (*FilepathShim) Abs

func (sh *FilepathShim) Abs(path string) (string, error)

func (*FilepathShim) Base

func (sh *FilepathShim) Base(path string) string

func (*FilepathShim) Clean

func (sh *FilepathShim) Clean(path string) string

func (*FilepathShim) Dir

func (sh *FilepathShim) Dir(path string) string
func (sh *FilepathShim) EvalSymlinks(path string) (string, error)

func (*FilepathShim) Ext

func (sh *FilepathShim) Ext(path string) string

func (*FilepathShim) FromSlash

func (sh *FilepathShim) FromSlash(path string) string

func (*FilepathShim) Glob

func (sh *FilepathShim) Glob(pattern string) (matches []string, err error)

func (*FilepathShim) IsAbs

func (sh *FilepathShim) IsAbs(path string) bool

func (*FilepathShim) Join

func (sh *FilepathShim) Join(elem ...string) string

func (*FilepathShim) Match

func (sh *FilepathShim) Match(pattern string, name string) (matched bool, err error)

func (*FilepathShim) Rel

func (sh *FilepathShim) Rel(basepath string, targpath string) (string, error)

func (*FilepathShim) Split

func (sh *FilepathShim) Split(path string) (dir, file string)

func (*FilepathShim) SplitList

func (sh *FilepathShim) SplitList(path string) []string

func (*FilepathShim) ToSlash

func (sh *FilepathShim) ToSlash(path string) string

func (*FilepathShim) VolumeName

func (sh *FilepathShim) VolumeName(path string) string

func (*FilepathShim) Walk

func (sh *FilepathShim) Walk(root string, walkFn filepath.WalkFunc) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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