files

package
v2.16.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var YamlExtensions = []string{"yaml", "yml"}

YamlExtensions contains all yaml-file extensions without leading dot that we allow.

Functions

func DoesFileExist

func DoesFileExist(fs afero.Fs, path string) (bool, error)

func FindYamlFiles added in v2.9.2

func FindYamlFiles(fs afero.Fs, root string) ([]string, error)

FindYamlFiles finds all YAML files within the given root directory. Hidden directories (start with a dot (.)) are excluded. Directories marked as hidden on Windows are not excluded. If root is not existent the function returns nil, nil

func IsYamlFileExtension

func IsYamlFileExtension(file string) bool

IsYamlFileExtension checks whether a file has a yaml extension specified in YamlExtensions, with leading dot.

func ReplacePathSeparators

func ReplacePathSeparators(path string) (newPath string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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