def cleanup

mylsm-lsm-store@0.6.0.1 · src/transfer/BackupCursorIo.bend:39

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

39# Removes the known staging file and directory after failed publication.
40# Removes the known staging file and directory after failed publication.
41def cleanup(+directory: String) -> IO(Unit):
42  do IO<Unit>:
43    _file : Result<&1, &1, U32 & String, Unit> <- Fs.remove(directory ++ "/BACKUP")
44    _directory : Result<&1, &1, U32 & String, Unit> <- Fs.remove(directory)
45    return Unit{}

Uses (10)

Used by (4)