From 7cb8b752619f17fd29be1b5496ced107d41e79e9 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 06:11:56 +0000 Subject: docs: a submission goes into the incoming directory whole Names starting with a dot are skipped there, so a provider copies a submission under one and renames it within the incoming directory: a receptor looking at it meanwhile (enstate.service, a check) never sees half a submission. Said in the design, the module's incomingDir, the store; and a test that a dot name is left alone. --- src/store.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/store.rs') diff --git a/src/store.rs b/src/store.rs index c6d4d6c..0c8f50d 100644 --- a/src/store.rs +++ b/src/store.rs @@ -233,7 +233,8 @@ impl Store { } /// Where submissions wait for the next `--migrate`, each in a directory of its own, - /// taken in the order of their names. + /// taken in the order of their names. Those starting with a dot are skipped, so that + /// a provider can copy a submission under such a name, and rename it when whole. pub fn incoming_dir(&self) -> PathBuf { self.state.join("incoming") } -- cgit v1.3.1