Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/file-ops-helpers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds three helpers requested by athena-archive-api #81 so the BE can route file ops through this library instead of bypassing it with raw pathlib calls.
ArchiveConfig.temp_dir+ extendedensure_directories()(#10) — optional short-lived workspace separate from persistentstorage_dirFileWorker.from_bytes(target, data)(#11) — atomic write via.part+Path.replace; crash-safe (interrupt mid-write leaves no partial file attarget)FileWorker.delete()(#9) —unlink+boolresult; documented as invalidating the workerBumps to 1.5.0 (additive surface, no breaking changes).
Verification
make mypycleanmake lintunchanged from main (33 pre-existing TC errors, no new ones)Test plan
make publishto push 1.5.0 to Forgejo PyPIuv lock --upgrade-package athena-fileand start round 2Closes #9
Closes #10
Closes #11