-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fix OS-specific path separator #71
base: main
Are you sure you want to change the base?
Conversation
Can you tell me about the problem this fixes? And how I would reproduce that problem to verify this fixes it. |
This is the case when I use Windows to code I'm using I looked at your x.clean() function and noticed that you used filepath.Clean() Lines 416 to 427 in 53cf1d6
Therefore, I also reuse this function to bring the two paths to the same type, after checking again with condition |
Why is your code not calling |
You're right, maybe this pr isn't necessary.
In addition, I also saw that the library uses Lines 95 to 96 in 53cf1d6
|
It would be helpful to include the error message up front. It took me a while to understand the problem you're trying to fix. It turns out the problem is bad input. It took you a while to realize you were passing in two paths from different operating systems. Had this library hid that from you, you wouldn't even know it was happening. I'm still not sure this is the right thing to do. |
Yeah, I understand what you're thinking. But in my opinion, this is not necessarily a bug, we should do something to help people use the library as simply as possible 😊 |
Fix OS-specific path separator when i run on Windows