mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Various code fixes (#1704)
* fix typings and missing lib * fix i18n typo, add typings * code improvements * fix missing awaits * more fixes * fix bug in the evaluators, simplify code * more fixes
This commit is contained in:
@@ -28,13 +28,13 @@ const MAX_RETRIES = process.env.MAX_RETRIES || 1;
|
||||
|
||||
function rmDir(dirPath) {
|
||||
try {
|
||||
var files = fs.readdirSync(dirPath);
|
||||
const files = fs.readdirSync(dirPath);
|
||||
} catch (e) {
|
||||
return;
|
||||
}
|
||||
if (files.length > 0)
|
||||
for (var i = 0; i < files.length; i++) {
|
||||
var filePath = dirPath + '/' + files[i];
|
||||
for (let i = 0; i < files.length; i++) {
|
||||
const filePath = dirPath + '/' + files[i];
|
||||
if (fs.statSync(filePath).isFile()) fs.unlinkSync(filePath);
|
||||
else rmDir(filePath);
|
||||
}
|
||||
|
Reference in New Issue
Block a user