Skip to main content
← rust.krizaka.comkrizaka.com

Module scope

Module scope 

Source
Expand description

The folder scope — the heart of the app’s least-privilege file access.

The app can read a path only when it lies inside a folder the user granted with the native picker. Grants are persisted (a JSON file in the app’s data directory), listed in the UI and revocable. Every path is canonicalised before it is compared, so .. segments and symlinks that leave a granted folder are refused; broad or sensitive locations can never be granted.

Structs§

ScopeStore
ScopedPath
A path the scope let through: canonical, inside a granted folder (or a file dropped this session), not sensitive.

Enums§

ScopeError

Functions§

home_dir