def restore_from

mylsm-lsm-store@0.6.0.1 · src/transfer/RestoreIo.bend:521

import mylsm-lsm-store@0.6.0.1/src/transfer/RestoreIo.bend as RestoreIo
import Base
import mylsm-lsm-store@0.6.0.1/src/Fs.bend as Fs

521# Reads a bounded backup bundle file and restores its validated exchange.
522def restore_from(
523  +destination: String,
524  +bundle: String
525) -> IO(Result<&1, &1, Error, Unit>):
526  do IO<Result<&1, &1, Error, Unit>>:
527    measured : Result<&1, &1, U32 & String, Nat> <- Fs.file_size(bundle ++ "/BACKUP")
528    source.size(destination, bundle ++ "/BACKUP", measured)

Uses (12)

Used by (2)