/** * Process one deposit. Fetch the data and write it to the file system. * Updates the deposit status, and may remove the processing files if * LOCKSSOatic reports agreement. * * @param Deposit $deposit * * @return type */ protected function processDeposit(Deposit $deposit, $force = false) { if ($deposit->getPlnState() === 'agreement') { $this->logger->notice($deposit->getDepositUuid()); $this->delFileTree($this->filePaths->getHarvestFile($deposit), $force); $this->delFileTree($this->filePaths->getProcessingBagPath($deposit), $force); // $this->delFileTree($this->filePaths->getStagingBagPath($deposit), $force); } }