Skip to main content

remove_transaction_keeps

Function remove_transaction_keeps 

Source
pub fn remove_transaction_keeps(
    object_directory: &Path,
    transaction_id: &str,
) -> Result<usize, RecoveryError>
Expand description

What: Remove every .keep whose message names the transaction; returns how many. Why: removeTransactionKeeps: a .keep holds the message and a newline, exactly; a file that vanished meanwhile is skipped.

In TS you’d write (pseudocode):

async function removeTransactionKeeps({ objectDirectory, transactionId }): Promise<number>;