-
-
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 trash.sync()
#73
Comments
The trash operation can be slow, so it would not be recommended for anything other than scripts or CLIs. PR welcome. |
Late to the party, but remember that |
@Pomax sorry but i dont understand yet. how do javascript cover |
@Pomax wait, did you mean this? async function doMyThings() {
// do some things...
// ... then sync trash, but wait for that to finish before doing more things...
await trash('myfiles');
// ... and then do more things once trash has finished.
}
|
sorry, was thinking of something else: the current README.md already covers exactly what I wrote about 2 years ago: https://github.com/sindresorhus/trash#usage |
Please consider adding
trash.sync()
as a synchronous option.It would be convenient for users of fs-extra to pair its sync/async functions appropriately with
trash
.The text was updated successfully, but these errors were encountered: