aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-12-01 06:11:56 +0000
committertv <tv@krebsco.de>2026-12-01 06:11:56 +0000
commit7cb8b752619f17fd29be1b5496ced107d41e79e9 (patch)
tree46907416ed5fa40291f189cbc82f116293fdc98f /src
parent60da3a663ed070c1e6c5d2a1b171e316a0395bbd (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/store.rs3
1 files changed, 2 insertions, 1 deletions
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")
}