fileaccess

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package fileaccess carries per-file permission checks into recursive tools without coupling built-in tools to a permission policy.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAllowed

func ReadAllowed(ctx context.Context, path string) bool

ReadAllowed reports whether every active search filter permits path. Without a policy, file tools retain their ordinary filesystem boundary.

func WithReadFilter

func WithReadFilter(ctx context.Context, allow func(path string) bool) context.Context

WithReadFilter adds a filter for files discovered by a recursive search. path is absolute. An enclosing filter, if any, must also allow the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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