Closed travcunn closed 7 years ago
Is that a str on Python2.7?
That method takes FS paths, which should always be unicode. The fix may be to raise an error if its a bytes string.
Good call. Yes it is a str on Python2.7.
I think this is resolved. Close it? Ping @lurch
This hasn't been resolved. "The fix may be to raise an error if its a bytes string." But if you want to create an issue instead @arekbulski (which would be more appropriate) then I'll close this PR (which contains an invalid fix).
Going to close this one. Its a valid point though. fs2 it will raise an exception for any path that isn't unicode. I'd consider backporting it if there is demand...
Using
OSFS.getsyspath("/diseño/test123")
causes problems.Here is a partial stack trace:
Hopefully this pull request resolves this issue