find

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllFiles added in v0.5.0

func AllFiles(root string) ([]string, error)

AllFiles walks the directory tree rooted at 'root' and returns a slice of strings containing the paths of all files in the tree, including hidden files. The returned paths are relative from root.

func FilesByExtensions

func FilesByExtensions(root string, extensions []string) ([]string, error)

FilesByExtensions walks the directory tree rooted at 'root' and returns a slice of strings containing the paths of all files in the tree with a file extension in 'extensions'. If an error occurs during the directory walk, it is returned. Although if the error is a permission error, it is logged instead and the directory walk continues.

Types

This section is empty.

Jump to

Keyboard shortcuts

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