Skip to content

SA-MP cache manager with guarded deletion - #435

Open
aujiz11 wants to merge 2 commits into
openmultiplayer:masterfrom
aujiz11:master
Open

aujiz11 wants to merge 2 commits into
openmultiplayer:masterfrom
aujiz11:master

Conversation

@aujiz11

@aujiz11 aujiz11 commented Oct 9, 2026

Copy link
Copy Markdown
Contributor
  • Rust resolves the cache location from Windows Documents and reads metadata to count DFF/TXD resources.
  • Deletion revalidates directory identities and resource metadata, rejects symlinks/junctions, checks game processes, and prevents concurrent cache operations or launcher game starts.
  • Blocking I/O runs through spawn_blocking, with a reusable directory buffer and bounded traversal.
  • The frontend virtualizes cache entries and deletion reports, and ignores stale scan responses.

Important: Displayed sizes count DFF/TXD resources only, they do not represent all deleted data or guaranteed disk space recovered.

Validation: Native safety checks passed against temporary cache directories, including changed files, locked files, junctions, traversal limits, and game-start detection.

Note: Added a Vietnamese translation.

@aujiz11 aujiz11 changed the title SA-MP cache manager exercise with guarded deletion SA-MP cache manager with guarded deletion Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant