#pragma once // prune_action — the "Prune bank folder" action body: the SOLE file-deletion action // in ReaSampler, isolated in its own TU so the deletion authority is one obvious // module. Registration/dispatch for its FOREVER-STABLE id (BANK_PRUNE_FOLDER) stay // with bank_actions; one guarded body here. // // Contract (preserve exactly): dry-run first; abort outright when the tracking // authority reports a block (fail-safe); confirm-with-manifest before any deletion; // opens NO undo point and writes NO ext state (file deletion is not REAPER-undoable). namespace reasampler { class ReaSamplerSession; // Runs the guarded prune flow against `session`. Called by the bank family's // hookcommand handler when the BANK_PRUNE_FOLDER action fires. void doBankPruneFolder(ReaSamplerSession& session); } // namespace reasampler