fpath

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepCopy added in v0.12.1

func DeepCopy(src string, target string) error

DeepCopy performs a deep copy of src to target, creating all folders leading up to target if necessary.

func Globs

func Globs(patterns []string) []string

Globs returns the names of all files matching the glob patterns. Effectively syntactic sugar for filepath.Glob() to support multiple patterns.

func List

func List(dir string, pattern string) ([]string, error)

List returns a list of files matching the regexp pattern. Unlike filepath.Glob, this method will inspect all subdirectories of dir.

func Walk

func Walk(paths []string, pattern string) ([]string, error)

Walk evaluates each glob pattern of paths and walks through each directory. Returns a list of files that match the given regex pattern.

Types

This section is empty.

Jump to

Keyboard shortcuts

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