def archive_dirs
import cswap-bend-cli@0.1.0.0/store/io.bend as Ioimport Base
import cswap-bend-cli@0.1.0.0/act.bend as Act
import cswap-bend-cli@0.1.0.0/store/base.bend as SBase
148# Move the slot's .enc (and .prev, legacy copy, config) under .removed/ with a
149# UTC time stamp. This is where `remove` and every slot displacement send a
150# credential: the reference deletes them, which lost the only full login once.
151def archive_dirs(+root: String) -> Act.of(Unit):
152 do ActM<Unit>:
153 secure_dir(SBase.removed_dir(root))
154 secure_dir(SBase.removed_configs_dir(root))