Skip to content

Commit 87ebd84

Browse files
committed
Add clean up for successfully processed msg files
1 parent 8a21678 commit 87ebd84

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ async function main(credentials, fileLimit) {
308308
Description: description
309309
}
310310
)
311+
console.info('deleting local files')
312+
fs.unlinkSync(localFilename)
313+
fs.rmdirSync(extractionDir, {recursive: true})
311314
}
312315
catch(error) {
313316
console.info('!!! error while creating documents')

0 commit comments

Comments
 (0)