fix: enable file deletion in cleanup process; update version to 1.3.0
This commit is contained in:
parent
cac7fcac2e
commit
aa5b00f653
2
index.js
2
index.js
@ -60,7 +60,7 @@ const cleanUp = () => {
|
||||
const filesToDelete = group.files.slice(0, group.files.length - group.groupSize);
|
||||
filesToDelete.forEach(file => {
|
||||
console.log(new Date().toISOString() + " Deleting file: ", file);
|
||||
//fs.unlinkSync(uploadPath + "/" + file);
|
||||
fs.unlinkSync(uploadPath + "/" + file);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "simple-http-file-api",
|
||||
"version": "1.1.0",
|
||||
"version": "1.3.0",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "node index.js",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user