Skip to content

Add PathUtilities.CombinePaths with same semantics as Path.Combine#52322

Merged
tmat merged 5 commits intodotnet:mainfrom
tmat:CombinePaths
Apr 5, 2021
Merged

Add PathUtilities.CombinePaths with same semantics as Path.Combine#52322
tmat merged 5 commits intodotnet:mainfrom
tmat:CombinePaths

Conversation

@tmat
Copy link
Member

@tmat tmat commented Mar 31, 2021

Also adds tests.

@tmat tmat requested a review from a team as a code owner March 31, 2021 23:39
@ghost ghost added the Area-Compilers label Mar 31, 2021
@tmat
Copy link
Member Author

tmat commented Apr 2, 2021

@dotnet/roslyn-compiler PTAL

tmat and others added 2 commits April 5, 2021 09:25
Co-authored-by: Jared Parsons <jaredpparsons@gmail.com>
/// <param name="root">First path: absolute, relative, or null.</param>
/// <param name="path">Second path: absolute, relative, or null.</param>
/// <returns>
/// The combined paths. If <paramref name="path"/> contains an absolute path, returns <paramref name="root"/>.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't it return path when it's an absolute path?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes.

@tmat tmat enabled auto-merge (squash) April 5, 2021 17:53
@tmat tmat merged commit e9290a8 into dotnet:main Apr 5, 2021
@ghost ghost added this to the Next milestone Apr 5, 2021
@dibarbet dibarbet modified the milestones: Next, 16.10.P3 Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants