Source code for acquisition.delete_step

from acquisition import AcquisitionStep


[docs]class AcquisitionDeleteStep(AcquisitionStep): """ Class to describe a delete acquisition step. """
[docs] def process(self, xaf): res = xaf.delete_or_nothing() if res: self.info("%s deleted", xaf.filepath) return True else: self.warning("Can't delete %s", xaf.filepath) return False