Cleaning up tmp directory throws an error
See original GitHub issueThe error is
Error: ENOTEMPTY: directory not empty, rmdir '/tmp/tmp-96377PyPfMXvxq0t'
and it’s pretty obvious what it’s complaining about. I wrote to the temporary directory and now it doesn’t want to clean it up because something is inside. In rm
terms, I should use -f
.
The problem I have with this is that there’s probably always something inside this temporary directory. Shouldn’t the library clean this up regardless?
Issue Analytics
- State:
- Created 8 years ago
- Reactions:4
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Automatically Cleaning Up Temporary Files on Program Exit
A dead-simple way to clean up temporary files without having to worry ... It makes use of my Throw() method to easily raise...
Read more >AWS lambda - Release /tmp storage after each execution
At the beginning of function, I wrote some code to the clean up /tmp folder, to make sure it's not out of memory...
Read more >How to Delete Temporary Files in Windows
Enter %temp% from Search/Run, and delete what's in there. Also empty the Recycle Bin. Alternatively, use a command line command.
Read more >Failed to delete temp file - how to solve related issues
A delete request throws 404 error code if the document does not already exist in the index. If you want to delete a...
Read more >Failed to delete temp folder - SonarCloud
At what point is the error thrown? What logs came before it? SonarQube Developer Editions fails to create a temp directory.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Stupid question: How to use the options?
tmp.dirSync("unsafeCleanup");
does not work.