Skip to content

Commit

Permalink
fix: remove validation directory
Browse files Browse the repository at this point in the history
  • Loading branch information
DD-Arras committed Dec 2, 2024
1 parent 28476eb commit 2b89c1b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Validation/ValidationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

/**
Expand Down

0 comments on commit 2b89c1b

Please sign in to comment.