feat(archive): lay out the archive's whole folder tree wherever its root is
The owner asked (2026-11-06) that whatever path is given as the archive root, on the server in Docker or on Windows, Chronos creates inside it every folder the archive keeps. Until now only .chronos was made up front; locks, journal, staging, trash and its photos and videos areas appeared on first use, and an archive copied or made by an older build could lack them. ArchiveStructure.Ensure (Core) creates the missing folders of BRIEF §7 idempotently, never touching existing folders or files, and reports why it could not (drive or share unavailable, permission denied, read-only, a file in the way) as one localized sentence. ArchiveService runs it when it creates an archive (refused with the reason when the tree cannot be made) and at every open. The server checks it at start-up and on each dashboard read: it logs a warning, the dashboard shows an "Archive incomplete" chip with the reason, and /health reports archive "incomplete". The desktop runs it when an archive is created, adopted or opened at start, and a folder typed in Settings that is not an archive yet becomes one in place, as Welcome's Create does; a writable archive whose tree cannot be completed is refused with the reason. Refs #31 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fe50b87726
commit
a5facf0b5b
24 files changed
+605
-21
No files matched your search
@@ -155,6 +155,11 @@
|
||||
<data name="Admin.Dashboard.AllLogs" xml:space="preserve"><value>All logs</value></data>
|
||||
<data name="Admin.Dashboard.AllLogs.Tip" xml:space="preserve"><value>Open the audit log</value></data>
|
||||
<data name="Admin.Dashboard.Archive" xml:space="preserve"><value>Archive</value></data>
|
||||
<data name="Admin.Dashboard.ArchiveIncomplete" xml:space="preserve"><value>Archive incomplete</value></data>
|
||||
<data name="Admin.Dashboard.ArchiveIncomplete.Denied.Tip" xml:space="preserve"><value>The server may not create the archive folder {0}. Let its account write there (in Docker, the owner of the /archive mount); uploads, deletions and conversions that need it fail until then.</value></data>
|
||||
<data name="Admin.Dashboard.ArchiveIncomplete.Failed.Tip" xml:space="preserve"><value>The archive folder {0} could not be created; a file with that name may be in the way. The server log says why.</value></data>
|
||||
<data name="Admin.Dashboard.ArchiveIncomplete.ReadOnly.Tip" xml:space="preserve"><value>The archive folder {0} cannot be created: the drive or share is read-only (in Docker, check that /archive is not mounted read-only).</value></data>
|
||||
<data name="Admin.Dashboard.ArchiveIncomplete.Unavailable.Tip" xml:space="preserve"><value>The drive or share of {0} is not available. Connect it; the folders are created when the dashboard is opened again.</value></data>
|
||||
<data name="Admin.Dashboard.ByYear" xml:space="preserve"><value>Storage by year</value></data>
|
||||
<data name="Admin.Dashboard.CameraCount.one" xml:space="preserve"><value>{0} camera</value></data>
|
||||
<data name="Admin.Dashboard.CameraCount.other" xml:space="preserve"><value>{0} cameras</value></data>
|
||||
|
||||
@@ -372,6 +372,10 @@
|
||||
<data name="Archive.Set.Retag" xml:space="preserve"><value>Retag…</value></data>
|
||||
<data name="Archive.Set.Thumbnails" xml:space="preserve"><value>Thumbnails</value></data>
|
||||
<data name="Archive.Set.Verify" xml:space="preserve"><value>Verify</value></data>
|
||||
<data name="Archive.Structure.Denied" xml:space="preserve"><value>Chronos may not create the archive folder {0}: check the folder's permissions and whether the drive or share is read-only.</value><comment>long: error sentence; {0} folder path</comment></data>
|
||||
<data name="Archive.Structure.Failed" xml:space="preserve"><value>The archive folder {0} could not be created; a file with that name may be in the way.</value><comment>long: error sentence; {0} folder path</comment></data>
|
||||
<data name="Archive.Structure.ReadOnly" xml:space="preserve"><value>The archive folder {0} cannot be created: the drive or share is read-only.</value><comment>long: error sentence; {0} folder path</comment></data>
|
||||
<data name="Archive.Structure.Unavailable" xml:space="preserve"><value>The drive or share of {0} is not available: connect it and try again.</value><comment>long: error sentence; {0} folder path</comment></data>
|
||||
<data name="Archive.Tile.Cameras.one" xml:space="preserve"><value>camera</value></data>
|
||||
<data name="Archive.Tile.Cameras.other" xml:space="preserve"><value>cameras</value></data>
|
||||
<data name="Archive.Tile.Formats.one" xml:space="preserve"><value>{0:N0} format</value></data>
|
||||
|
||||
Reference in new issue
Block a user