Operating System
NodeJS Version
Tmp Version
0.1.0
Expected Behavior
the following code should delete temp file:
import * as tmp from "tmp";
let tempFile = tmp.fileSync();
fs.unlinkSync(filename);
Experienced Behavior
File stays even after node exits.
Note:
- When creating file using fs.writeFileSync(), i'm able to delete it.
- Tried with fs-extra remove() and the result is the same
- When creating temp directory using tmp.dirSync() it is possible to delete it using fs-extra remove()
Operating System
NodeJS Version
Tmp Version
0.1.0
Expected Behavior
the following code should delete temp file:
Experienced Behavior
File stays even after node exits.
Note: