Skip to content
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

Convert forward slashes to backslashes on windows #5

Closed
wants to merge 1 commit into from
Closed

Conversation

retupmoca
Copy link

This fixes panda on windows.

@tadzik
Copy link
Collaborator

tadzik commented May 9, 2015

I have mixed feelings about this one, and it's been here for so long, because it feels weird to me that .relative is a almost a no-op here but converts slashes. Does .IO.path achieve the same result, could we use that instead? Again, sorry to keep it open for so long.

@lizmat
Copy link
Collaborator

lizmat commented May 9, 2015

On 09 May 2015, at 16:59, Tadeusz Sośnierz notifications@github.com wrote:

I have mixed feelings about this one, and it's been here for so long, because it feels weird to me that .relative is a almost a no-op here but converts slashes. Does .IO.path achieve the same result, could we use that instead? Again, sorry to keep it open for so long.

Not sure how relevant, but one of the ideas of the newio branch is to only expose forward slashes at the P6 level.

Liz

@tadzik
Copy link
Collaborator

tadzik commented Aug 27, 2015

Okay, I've slacked off for full 4 months with this, and I figured it's time to accept it :) Here's a thing though: as a default, $exclude is False, so Bool. In tests it's an Array of Str, and here it's used as a single Str :) I will typify the API properly and pull this change in along with it.

@tadzik
Copy link
Collaborator

tadzik commented Aug 27, 2015

Ok, I decided to make it a user's responsibility after all. I fixed it in panda with tadzik/panda@6cbf3f1 and also fixed File::Find's tests and documentation to underline and verify that: 522363b

Can you confirm that it fixes the issue for you and whether you agree with the change? :)

@retupmoca
Copy link
Author

Works for me! Panda has been working on Windows again, which is mostly what I cared about.

@tadzik
Copy link
Collaborator

tadzik commented Aug 27, 2015

Okay, awesome :) Thanks!

@tadzik tadzik closed this Aug 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants