fsutil

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package fsutil provides shared filesystem helpers used across the compiler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasAnyExt

func HasAnyExt(path string, exts ...string) bool

HasAnyExt reports whether path ends with one of the given extensions.

func WalkExt

func WalkExt(root string, exts map[string]bool, skipDirs map[string]bool, fn func(path string, info os.FileInfo) error) error

WalkExt walks root and invokes fn for every regular file whose extension is in exts. Directories named in skipDirs (base name match) are pruned. The first error returned by fn or the walker is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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