Skip to content

Integration questions #77

Answered by Byron
tbillington asked this question in Q&A
Jul 7, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Thanks for considering using trash-rs :)!

The issue you find actually has been resolved already (and just recently), and was just left-over. With that said, on windows it can't delete a single folder right now, but will instead delete each file recursively. This is certainly not optimal for performance, and maybe has another, better solution. The current one is clearly just at the level of 'getting it to work'.

I'm also curious about the performance difference between deletion of a large directory with many files and moving it to trash, do you have any insight here?

On unix, any directory is just a single item, but on windows it's the entire contents. I also don't know if the test-suite…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tbillington
Comment options

Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #76 on July 07, 2023 05:44.