mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-03-23 02:17:59 +01:00
Without explicit directory entries, some zip viewers (simpler tools, web-based viewers) don't show the folder structure when browsing the archive. Add a _ensure_zip_dirs() helper that writes directory markers for all parent paths of each file entry, deduplicating via a set. Uses ZipFile.mkdir() (available since Python 3.11, the project minimum). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>