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
I'm using a custom globber that internally uses only forward slashes and I also consistently specify sep='/' to iglob etc., and yet, on Windows I can still get paths joined by '\'.
I see that this sep is only being passed to _join_paths, and inside it all that happens is that / gets replaced with this character. What about replacing \, though?
There's also a suspicious backslash (that has no effect at all) inside the pattern 🤔
It's strange that os.path.join is being used for this library, which strives to fully abstract this operation -- and currently seems like I have no better option but to map all its outputs through pathlib.Path(p).to_posix(). This particular operation is not overridable.
So, my use case doesn't work, but I also find it difficult to understand how sep can be used at all, as on Windows it will always just be skipped.
Just looking at the suspicious backslash seems like a bug.
Cannot help further, because the functioning of this project has slipped my mind after all this time.
Activity
oprypin commentedon Dec 5, 2020
cc @ankostis
ankostis commentedon Dec 11, 2020
Just looking at the suspicious backslash seems like a bug.
Cannot help further, because the functioning of this project has slipped my mind after all this time.