Comments (5)
Thanks for the report @hasezoey.
In the past, I first tested the { recursive: true }
option, however, I turned out that it would sometimes fail or did not behave in the way we needed it to, with the then available node version.
That is why we, reluctantly, incorporated rimraf.
I will see what this option does now and whether it behaves the way we need it to.
from node-tmp.
As for the removeCallback
not being in sync is a question of the OS you are working under. Windows will lock open files and thus prevent rmdir
from removing the directories these files are located in.
Sometimes, this goes as far as that node has to be shutdown prior to the lock being removed, leaving all directories in place, and one has to manually clean up the temporary storage.
from node-tmp.
Windows will lock open files and thus prevent rmdir from removing the directories these files are located in.
just for information, i am on Linux, so they should be unlinked if not directly removed (which recursively deleting (at least rm -rf
) does)
from node-tmp.
Thanks for the information. I will see what I can do.
from node-tmp.
rimraf works for me and also in the automated tests
please provide a more specific scenario in which this will not work.
from node-tmp.
Related Issues (20)
- Random test failures when running async tests locally on the WIN32 platform HOT 2
- Change README.md reference of Graceful Cleanup
- EBADF with streams and pipeline HOT 7
- Why does tmp remove quotes from paths ? HOT 13
- Unknown "devtmpnodejsnpm-cache" folder HOT 2
- Breaking changes viped from changelog HOT 1
- Why does tmp.setGracefulCleanup() not work within jest tests? HOT 5
- unsafeCleanup fails on windows HOT 7
- Changelog no longer includes critical BREAKING CHANGE information HOT 12
- Tmp files kept on disk HOT 1
- crypto.pseudoRandomBytes was deprecated and now uses randomBytes under the hood HOT 1
- setGracefulCleanup doesn't work for worker thread. HOT 3
- 0.2.2 was tagged but not published HOT 9
- How to actually "STORE" file into these temp objects? HOT 1
- Using Frogbot to scan this repository HOT 1
- Please consider to upgrade rimraf to latest version HOT 1
- Upgrade of rimraf causes issue
- Explicit cleanup operation HOT 2
- Create directory when resolving tmpName, if the directory doesn't already exist HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-tmp.