Giter VIP home page Giter VIP logo

Comments (7)

sindresorhus avatar sindresorhus commented on July 24, 2024 2

@BenGitsCode Yeah. I usually use del-cli for deleting node_modules as it's not something I would ever care about recovering.

from trash-cli.

sindresorhus avatar sindresorhus commented on July 24, 2024 1

@dawsonbotsford No, that's not what I'm saying. That would be very surprising behavior. I just use del-cli instead of trash when deleting node_modules.

from trash-cli.

dawsbot avatar dawsbot commented on July 24, 2024

You can see here that you are actually talking about a bug in globby. You should report this issue there and close it here as it's not a bug in trash-cli. This is wrong, apologies.

from trash-cli.

sindresorhus avatar sindresorhus commented on July 24, 2024

@dawsonbotsford No. The issue is that we send too many arguments (files) to the native trash binary.

from trash-cli.

BenGitsCode avatar BenGitsCode commented on July 24, 2024

I think @sindresorhus is correct here. Why not just use rm -rf '**/node_modules' for that use instance? I mostly use this module for anytime I'm about to use rm -rf but I hang on the thought "will I ever need this again" and use trash just to be safeโ€”in case I need to recover it later.

from trash-cli.

dawsbot avatar dawsbot commented on July 24, 2024

It seems like directly calling a permanent delete function for path's which contain node_modules is reasonable. Then you would manually remove those paths from the list given to the native trash binary?

If this sounds right, I'd be happy to PR that functionality.

from trash-cli.

sindresorhus avatar sindresorhus commented on July 24, 2024

Pull request welcome :)

from trash-cli.

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.