Comments (7)
@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.
@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.
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 This is wrong, apologies.trash-cli
.
from trash-cli.
@dawsonbotsford No. The issue is that we send too many arguments (files) to the native trash binary.
from trash-cli.
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.
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.
Pull request welcome :)
from trash-cli.
Related Issues (20)
- Add restore feature HOT 9
- Restoring issue HOT 2
- Feature: Compile trash-cli into native binaries HOT 2
- "Put Back" not Available for Deleted Files in macOS Finder HOT 1
- --dot not supported? HOT 2
- .Trash directory
- abilty to glob paths which skip the trash and are deleted immediately
- File deleted but not in Recycle Bin HOT 6
- No put back option in the Trash HOT 1
- Hard-deletes on macOS Mojave HOT 1
- Error from Update Notifier module HOT 1
- `sudo trash` still has no permission HOT 6
- No such file or directory message
- Can't trash folders with content HOT 1
- High vulnerability in dependency
- project name causes confusion with the original trash-cli project (in Python) HOT 1
- ImportError: No module named trashcli.put HOT 2
- v5 throws ERR_UNSUPPORTED_ESM_URL_SCHEME error
- Add example unicorn.png HOT 1
- windows-trash.exe does not work with subst virtual drive paths
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 trash-cli.