- Version: node 5.6.0
- Platform:Windows 64-bit
- Subsystem:
i had used rimraf to remove folder and use fs to remove file after download.
But when delete complete node have issue and i cant find the same on any where.
Thanks you very much.
clearFileAfterDownload(path){if(fs.existsSync(path)){rimraf(path,(err)=>{if(err){console.log(err);}});}if(fs.existsSync(path+'.zip')){fs.unlinkSync(path+'.zip');}}(edited by @vsemozhetbyt: fix backticks for code block)
i had used rimraf to remove folder and use fs to remove file after download.
But when delete complete node have issue and i cant find the same on any where.
Thanks you very much.
(edited by @vsemozhetbyt: fix backticks for code block)