We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First of all, thank you for this. As an advocate of pathlib, I'd like to be able to run
pathlib
send2trash(path)
where path is a pathlib.Path object. From what I gather this isn't implemented, because I get:
path
pathlib.Path
TypeError: Must be bytes, not PosixPath
but it works fine if I do:
send2trash(str(path))
It might be as simple as wrapping the input in str(), I haven't checked how other libraries are handling it.
str()
The text was updated successfully, but these errors were encountered:
[fix] send2transh bug
a3cdea3
Compatibility with pathlib - arsenetar/send2trash#49
Should be fixed with changes from 94e1ec0
Sorry, something went wrong.
1.8.0 is now available, closing
No branches or pull requests
First of all, thank you for this.
As an advocate of
pathlib
, I'd like to be able to runwhere
path
is apathlib.Path
object.From what I gather this isn't implemented, because I get:
but it works fine if I do:
It might be as simple as wrapping the input in
str()
, I haven't checked how other libraries are handling it.The text was updated successfully, but these errors were encountered: