filepathutil

package
v0.0.0-...-b7a57f2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultIgnores = map[string]bool{
		"node_modules": true,
		".git":         true,
	}
)

DefaultIgnores

Functions

func ClearListRecursiveCache

func ClearListRecursiveCache()

func IsChild

func IsChild(path1 string, path2 string) bool

IsChild checks if path2 is a child of path1. assumes both path starts from same directory and always returns true if path1 is root(e.g. `.`)

func ListRecursive

func ListRecursive(inp string, projectRoot string) (all []string, err error)

ListRecursive lists all files relative to input. It ignores symbolic links which are not inside the projectRoot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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