Reclaim space from previz working folders #186

Open
opened 2026-10-11 06:41:40 +00:00 by crowmaki · 0 comments
Owner

Parent

#139

Problem

Storage lists each .blend file in a Shot's previz folder, but never deletes one (#178: "They are Blender's workspace"). So some previz files can't be reclaimed from the app:

  • Each "Rebuild Blender scene" leaves a scene-set-aside-N.blend, and Blender leaves .blend1 backups. They build up.
  • The previz folder of a deleted Shot stays on disk. Storage lists its .blend files by path only, with no user.
  • playblast.mp4, scene.json, bootstrap.py and the references/ files aren't listed, so their space isn't counted. After the scan picks up playblast.mp4, it is a second copy of a stored previz version.

What to build

  • Storage can remove a set-aside .blend file, a .blend1 backup, and the whole previz folder of a Shot that no longer exists. It never removes the current scene.blend of a live Shot.
  • Storage counts the previz folder's other files, at least as a total per folder.
  • The cleanup suggestions (#70) include set-aside files and the folders of deleted Shots.

Undo can bring a deleted Shot back. Decide whether its folder is kept while the deletion can still be undone, or removed only when the filmmaker asks.

Acceptance criteria

  • Storage tests: a set-aside file can be removed, a live Shot's scene.blend can't, and the folder of a deleted Shot can be removed
  • Storage shows each previz folder's total size
  • The cleanup suggestions list the new candidates
## Parent #139 ## Problem Storage lists each `.blend` file in a Shot's previz folder, but never deletes one (#178: "They are Blender's workspace"). So some previz files can't be reclaimed from the app: - Each "Rebuild Blender scene" leaves a `scene-set-aside-N.blend`, and Blender leaves `.blend1` backups. They build up. - The previz folder of a deleted Shot stays on disk. Storage lists its `.blend` files by path only, with no user. - `playblast.mp4`, `scene.json`, `bootstrap.py` and the `references/` files aren't listed, so their space isn't counted. After the scan picks up `playblast.mp4`, it is a second copy of a stored previz version. ## What to build - Storage can remove a set-aside `.blend` file, a `.blend1` backup, and the whole previz folder of a Shot that no longer exists. It never removes the current `scene.blend` of a live Shot. - Storage counts the previz folder's other files, at least as a total per folder. - The cleanup suggestions (#70) include set-aside files and the folders of deleted Shots. Undo can bring a deleted Shot back. Decide whether its folder is kept while the deletion can still be undone, or removed only when the filmmaker asks. ## Acceptance criteria - [ ] Storage tests: a set-aside file can be removed, a live Shot's `scene.blend` can't, and the folder of a deleted Shot can be removed - [ ] Storage shows each previz folder's total size - [ ] The cleanup suggestions list the new candidates
Sign in to join this conversation.
No description provided.