filesystem

package
v1.22.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolvePaths

func ResolvePaths(paths []string, wl []util.IgnoreListEntry) (pathsToAdd []string, err error)

ResolvePaths takes a slice of file paths and a list of skipped file paths. It resolve each file path according to a set of rules and then returns a slice of resolved paths or error. File paths are resolved according to the following rules: * If path is in ignorelist, skip it. * If path is a symlink, resolve it's ancestor link and add it to the output set. * If path is a symlink, resolve it's target. If the target is not ignored add it to the output set. * Add all ancestors of each path to the output set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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