func FindFiles()

in helpers/foundation-deployer/utils/files.go [81:93]


func FindFiles(dir, filename string) ([]string, error) {
	found := []string{}
	err := filepath.WalkDir(dir, func(path string, d fs.DirEntry, err error) error {
		if d.IsDir() && d.Name() == TerraformTempDir {
			return filepath.SkipDir
		}
		if d.Name() == filename {
			found = append(found, path)
		}
		return nil
	})
	return found, err
}