def archive_mv

cswap-bend-cli@0.1.0.0 · store/io.bend:156

import cswap-bend-cli@0.1.0.0/store/io.bend as Io
import 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

156def archive_mv(+root: String, +slot: String, +email: String, +ts: String) -> Act.of(Unit):
157  do ActM<Unit>:
158    mv_keep(SBase.enc_path(root, slot, email), SBase.removed_enc_path(root, ts, slot, email))
159    mv_keep(SBase.prev_path(root, slot, email), SBase.removed_enc_path(root, ts, slot, email) ++ ".prev")
160    mv_keep(SBase.enc_path(root, "None", email), SBase.removed_enc_path(root, ts, "None", email))
161    mv_keep(SBase.config_path(root, slot, email), SBase.removed_config_path(root, ts, slot, email))

Uses (12)

Used by (1)