Add ArchiveConfig.temp_dir + extend ensure_directories() #10

Closed
opened 2026-05-03 10:09:12 +00:00 by gravityfargo · 0 comments
Owner

Context

Filed in support of athena-archive-api #81. The BE needs three directories at startup (storage, thumbnail, temp) but `ArchiveConfig` currently only manages storage + thumbnail. The BE has to call `Path.mkdir()` for temp itself.

Plan

  • Add a `temp_dir: Path | str | None = None` field to `ArchiveConfig`
  • When set, `ensure_directories()` creates it
  • Document the role: short-lived files during upload/transformation, distinct from persistent `storage_dir`

Acceptance criteria

  • `ArchiveConfig` accepts `temp_dir`
  • `ensure_directories()` creates it when set
  • Test added
## Context Filed in support of athena-archive-api #81. The BE needs three directories at startup (storage, thumbnail, temp) but \`ArchiveConfig\` currently only manages storage + thumbnail. The BE has to call \`Path.mkdir()\` for temp itself. ## Plan - Add a \`temp_dir: Path | str | None = None\` field to \`ArchiveConfig\` - When set, \`ensure_directories()\` creates it - Document the role: short-lived files during upload/transformation, distinct from persistent \`storage_dir\` ## Acceptance criteria - [ ] \`ArchiveConfig\` accepts \`temp_dir\` - [ ] \`ensure_directories()\` creates it when set - [ ] Test added
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ModernLeft/athena-file#10
No description provided.