You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
djhoese
added
blocked
Waiting on an external action (eg release of other package)
bug
and removed
blocked
Waiting on an external action (eg release of other package)
labels
Jan 29, 2021
Feature Request
Is your feature request related to a problem? Please describe.
When the
FSFile
constructor is passed anything that isn't a string, theFSFile.__str__
method triggers aTypeError
:which gives:
This is not a bug because the
FSFile
docstring does state it expects a string, but it would be nice if other pathlike objects could be passed as well.Describe the solution you'd like
I would like that the
FSFile
constructor supports the file system protocol, such that the code above would work as intended.Describe any changes to existing user workflow
None reasonably expected.
Additional context
It would save me a call to
__fspath__
orstr(...)
prior to creating theFSFile
objects.The text was updated successfully, but these errors were encountered: