-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to disable glob matching #60
Comments
Sure |
You can escape the character like this |
@kevva If it was only for the |
@kevva I could think of a different use-case. When you've already globbed or gotten the list of files using another mechanism and then pass it to |
I already know the files or folders I want to delete, so I simply pass them to trash in an array. Fine. Now consider this:
touch "test*.txt" touch test1.txt touch test2.txt touch test3.txt
And guess what happens if I tell trash to remove the regular file "test*.txt", not good 😅
Therefore I would opt for an option that disables the globber and simply uses the file list I pass.
I'd like to create a PR if you're willing to accept. I propose an interface like this:
The text was updated successfully, but these errors were encountered: