Giter Club home page Giter Club logo

Comments (5)

silkentrance avatar silkentrance commented on August 24, 2024

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.

silkentrance avatar silkentrance commented on August 24, 2024

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.

hasezoey avatar hasezoey commented on August 24, 2024

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.

silkentrance avatar silkentrance commented on August 24, 2024

Thanks for the information. I will see what I can do.

from node-tmp.

silkentrance avatar silkentrance commented on August 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.