Skip to content
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

List valid trash bin paths #103

Merged
merged 3 commits into from
Mar 19, 2024
Merged

Conversation

joshuamegnauth54
Copy link
Contributor

This is a small refactor to support listing Freedesktop compliant trash bins.

Enumerating trash bins, which may reside across mount points or be invalid in some way, is useful for end users who need the paths themselves rather than the items in the trash.

This is a small refactor to support listing Freedesktop compliant trash
bins. Enumerating trash bins, which may reside across mount points or be
invalid in some way, is useful for end users who need the paths
themselves rather than the items in the trash.
@Byron
Copy link
Owner

Byron commented Mar 19, 2024

Thanks a lot for contributing!

Windows really likes to crash these days and maybe it's even related to what is triggered by the tests (and thus is legit). But that's another story.

I also see how difficult this is to unit-test, and think it's OK to not have more than a doc-test.

And even though I'd want to avoid platform-specific APIs, I see how having this can be useful where it is supported.

@Byron Byron merged commit eb659cb into Byron:master Mar 19, 2024
4 checks passed
@Byron
Copy link
Owner

Byron commented Mar 19, 2024

The new release is available here: https://github.com/Byron/trash-rs/releases/tag/v4.1.0

@joshuamegnauth54 joshuamegnauth54 deleted the trash-locations branch June 13, 2024 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants