From 2b89c1be8201c0a97b9b211d3c0e2448c409049a Mon Sep 17 00:00:00 2001 From: Damien D'ARRAS Date: Mon, 2 Dec 2024 15:25:03 +0100 Subject: [PATCH] fix: remove validation directory --- src/Validation/ValidationManager.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Validation/ValidationManager.php b/src/Validation/ValidationManager.php index a1f5469..b57a064 100644 --- a/src/Validation/ValidationManager.php +++ b/src/Validation/ValidationManager.php @@ -375,12 +375,20 @@ private function cleanUp(Validation $validation) // clean validation temporary zip $tempZip = $validationDirectory . '/validation/' . $validation->getDatasetName() . '.zip'; if ($fs->exists($tempZip)) { - $this->logger->debug('Validation[{uid}] : rm -f {uid}/validation/' . $validation->getDatasetName() . '.zip...', [ + $this->logger->debug('Validation[{uid}] : rm -f {uid}/validation/{datasetName}.zip...', [ 'uid' => $validation->getUid(), 'datasetName' => $validation->getDatasetName(), ]); $fs->remove($tempZip); } + + // clean validation directory + if ($fs->exists($validationDirectory)) { + $this->logger->debug('Validation[{uid}] : rm -rf {uid}', [ + 'uid' => $validation->getUid(), + ]); + $fs->remove($validationDirectory); + } } /**