filepath

package
v0.0.0-...-cd5c7ba Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Separator     = filepath.Separator
	ListSeparator = filepath.ListSeparator
)

Variables

View Source
var (
	ErrBadPattern = filepath.ErrBadPattern
	SkipDir       = filepath.SkipDir
)

Functions

This section is empty.

Types

type FilePath

type FilePath string

func FromSlash

func FromSlash(path string) FilePath

func Glob

func Glob(pattern string) (matches []FilePath, err error)

func New

func New(path string) FilePath

func (FilePath) Abs

func (fp FilePath) Abs() (FilePath, error)

func (FilePath) Base

func (fp FilePath) Base() string

func (FilePath) Clean

func (fp FilePath) Clean() FilePath

func (FilePath) Dir

func (fp FilePath) Dir() FilePath
func (fp FilePath) EvalSymlinks() (FilePath, error)

func (FilePath) Ext

func (fp FilePath) Ext() string

func (FilePath) IsAbs

func (fp FilePath) IsAbs() bool

func (FilePath) Join

func (fp FilePath) Join(elem ...string) FilePath

func (FilePath) Match

func (fp FilePath) Match(pattern string) (matched bool, err error)

func (FilePath) Rel

func (fp FilePath) Rel(target FilePath) (FilePath, error)

func (FilePath) Split

func (fp FilePath) Split() (dir FilePath, file string)

func (FilePath) String

func (fp FilePath) String() string

func (FilePath) ToSlash

func (fp FilePath) ToSlash() string

func (FilePath) VolumeName

func (fp FilePath) VolumeName() string

func (FilePath) Walk

func (fp FilePath) Walk(fn WalkFunc) error

type List

type List []FilePath

func NewList

func NewList(list string) List

func (List) String

func (l List) String() string

type WalkFunc

type WalkFunc func(path FilePath, info fs.FileInfo, err error) error

Jump to

Keyboard shortcuts

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