fix: enable file deletion in cleanup process; update version to 1.3.0

This commit is contained in:
Schneider Roland 2025-02-28 06:08:28 +01:00
parent cac7fcac2e
commit aa5b00f653
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ const cleanUp = () => {
const filesToDelete = group.files.slice(0, group.files.length - group.groupSize); const filesToDelete = group.files.slice(0, group.files.length - group.groupSize);
filesToDelete.forEach(file => { filesToDelete.forEach(file => {
console.log(new Date().toISOString() + " Deleting file: ", file); console.log(new Date().toISOString() + " Deleting file: ", file);
//fs.unlinkSync(uploadPath + "/" + file); fs.unlinkSync(uploadPath + "/" + file);
}); });
} }
}); });

View File

@ -1,6 +1,6 @@
{ {
"name": "simple-http-file-api", "name": "simple-http-file-api",
"version": "1.1.0", "version": "1.3.0",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "node index.js", "start": "node index.js",