Skip to content
Snippets Groups Projects
Commit b3ba16ed authored by Toufic Batache's avatar Toufic Batache
Browse files

Add opengraphs to clear simulations cache script

parent 94634c2f
No related branches found
No related tags found
1 merge request!259Opengraphs du partage de simulation cas type
Pipeline #16472 passed
......@@ -33,3 +33,11 @@ if (fs.pathExistsSync(testCasesDir)) {
fs.removeSync(testCasesDir)
}
}
// Remove every test case opengraph image from cache.
const testCasesOpengraphsDir = path.join(simulationsTestCasesDir, "opengraphs")
if (fs.pathExistsSync(testCasesOpengraphsDir)) {
if (fs.lstatSync(testCasesOpengraphsDir).isDirectory()) {
fs.removeSync(testCasesOpengraphsDir)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment