filepathshim

package
v0.123.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 1 Imported by: 24 modules, 38 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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