fs

package
v0.7.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandIfFilePattern

func ExpandIfFilePattern(pattern string, recursive bool) ([]string, error)

ExpandIfFilePattern returns all the filenames that match the input pattern or the filename if it is a specific filename and not a pattern. If the input is a pattern and it yields no result it will result in an error.

func ExpandInputFiles

func ExpandInputFiles(files []string, recursive bool) ([]string, error)

ExpandInputFiles returns all the filenames that match the input filename, filepath or patterns.

func GetAllFilesInFolder

func GetAllFilesInFolder(folderPath string, recursive bool) ([]string, error)

func IgnoreFile

func IgnoreFile(path string, extensions []string) bool

func IsDir

func IsDir(path string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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