walker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SnapshotEntry

type SnapshotEntry struct {
	Path        string
	Size        int64
	ModTime     int64
	IsDir       bool
	Permissions uint32
	Hash        []byte
}

SnapshotEntry represents file metadata to be recorded.

func Walk

func Walk(root string) ([]SnapshotEntry, error)

Walk performs a concurrent directory traversal starting at root.

func WalkWithContext

func WalkWithContext(ctx context.Context, root string) ([]SnapshotEntry, error)

WalkWithContext performs a concurrent directory traversal starting at root with context support.

Jump to

Keyboard shortcuts

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