dirs

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(paths ...string) error

Create creates directories with default permissions.

func Walk

func Walk(root string, fn WalkFunc, skipGitignore ...bool) error

Walk walks the file tree rooted at root, calling fn for each file or directory in the tree, including root. By default, it respects .gitignore patterns. If you want to ignore .gitignore, pass the skipGitignore option.

Types

type WalkFunc

type WalkFunc func(path string, info os.FileInfo, err error) error

WalkFunc is the type of the function called by Walk for each file or directory.

Jump to

Keyboard shortcuts

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