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

combinePaths with no trimming operations #695

Merged
merged 1 commit into from
Mar 12, 2015
Merged

combinePaths with no trimming operations #695

merged 1 commit into from
Mar 12, 2015

Conversation

sillyotter
Copy link
Contributor

Previous versions of combinePath stripped of leading slashes from path2, which caused behaviors to be different between linux and windows. This new version of combinePaths doesn't trim the leading slashes, allowing the underlying Path.Combine to behave the same on both windows and linux. This fixes #670

We discussed several options for the operators. I managed to get just the plain / operator working using ideas mentioned here but in the end I decided to just use </> as the operator to do non trimmed path.combines.

Previous versions of combinePath stripped of leading slashes from path2, which caused behaviors to be different between linux and windows.  This new version of combinePaths doesn't trim the leading slashes, allowing the underlying Path.Combine to behave the same on both windows and linux.  This fixes #670
forki added a commit that referenced this pull request Mar 12, 2015
combinePaths with no trimming operations
@forki forki merged commit 3cb76f9 into fsprojects:master Mar 12, 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.

2 participants