Skip to content

Conversation

@WorkingRobot
Copy link
Member

Summary

If merged this pull request will allow caching extractions of unsuccessful runs (by default) and allow extractions to be persisted across runs (opt-in).

Proposed changes

The config file for storing persisted directories is in %TEMP%/.surfactant_extracted_dirs.json (or the relevant directory in other platforms. Being located in the same folder as the temp directories, it should allow the end user to clear their temp directory without issue. The config option decompression.cache_extractions (True by default) enables the behavior in this PR, while decompression.persist_extractions (False by default) enables the behavior even when Surfactant exits successfully. This PR is especially nice when dealing with large archives (i.e. a 5 GB .wim file that Surfactant will be able to handle in #450 that takes 2 hours to extract).

@github-actions
Copy link

github-actions bot commented Jul 30, 2025

✅ No SBOM Changes Detected

For commit ba0a98d (Run 16634696818)
Compared against commit 1b3fa13 (Run 16633319903)

@nightlark nightlark merged commit 3137a6a into main Aug 1, 2025
17 checks passed
@nightlark nightlark deleted the cache-decomp branch August 1, 2025 20:18
@nightlark nightlark added the enhancement New feature or request label Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants