-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Dial back aggressive checks in Path #16447
Conversation
Aggressive checks are preventing crossplat and extended Windows solutions. This change: - Doesn't throw on empty paths fro GetDirectoryName, GetPathRoot - Doesn't consider colon when looking at path segments on Windows - Moves non-shared code out of PathInternal - Fix span GetDirectoryName to handle multiple separators
|
|
||
| // The resulting string is null if path is null. If the path is empty or | ||
| // only contains whitespace characters an ArgumentException gets thrown. | ||
| public static string GetPathRoot(string path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment above is now wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
maryamariyan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Remove other usages of PathSkip (related to dotnet#16311)
* Test updates for dotnet/coreclr#16447 * Move variant test to own method. Add GetFileName tests for volume separators.
|
Test updates were merged: dotnet/corefx#27270 |
|
@dotnet-bot test Tizen armel Cross Checked Innerloop Build and Test Timed out |
* Dial back aggressive checks in Path Aggressive checks are preventing crossplat and extended Windows solutions. This change: - Doesn't throw on empty paths fro GetDirectoryName, GetPathRoot - Doesn't consider colon when looking at path segments on Windows - Moves non-shared code out of PathInternal - Fix span GetDirectoryName to handle multiple separators * Comment updates * Check for valid drive letter with PathRoot Remove other usages of PathSkip (related to #16311) Signed-off-by: dotnet-bot <[email protected]>
* Dial back aggressive checks in Path Aggressive checks are preventing crossplat and extended Windows solutions. This change: - Doesn't throw on empty paths fro GetDirectoryName, GetPathRoot - Doesn't consider colon when looking at path segments on Windows - Moves non-shared code out of PathInternal - Fix span GetDirectoryName to handle multiple separators * Comment updates * Check for valid drive letter with PathRoot Remove other usages of PathSkip (related to #16311) Signed-off-by: dotnet-bot <[email protected]>
|
@Anipik The mirror skipped this PR, and also dotnet/corefx#27328 . Could you please take a look ? |
|
@jkotas I will add the commit after dotnet/corefx#27381 has merged |
It has been merged. |
|
@Anipik This one was still not mirrored yet. Could you please take a look? |
* Dial back aggressive checks in Path Aggressive checks are preventing crossplat and extended Windows solutions. This change: - Doesn't throw on empty paths fro GetDirectoryName, GetPathRoot - Doesn't consider colon when looking at path segments on Windows - Moves non-shared code out of PathInternal - Fix span GetDirectoryName to handle multiple separators * Comment updates * Check for valid drive letter with PathRoot Remove other usages of PathSkip (related to #16311) Signed-off-by: dotnet-bot-corefx-mirror <[email protected]>
* Dial back aggressive checks in Path Aggressive checks are preventing crossplat and extended Windows solutions. This change: - Doesn't throw on empty paths fro GetDirectoryName, GetPathRoot - Doesn't consider colon when looking at path segments on Windows - Moves non-shared code out of PathInternal - Fix span GetDirectoryName to handle multiple separators * Comment updates * Check for valid drive letter with PathRoot Remove other usages of PathSkip (related to #16311) Signed-off-by: dotnet-bot-corefx-mirror <[email protected]>
* Dial back aggressive checks in Path Aggressive checks are preventing crossplat and extended Windows solutions. This change: - Doesn't throw on empty paths fro GetDirectoryName, GetPathRoot - Doesn't consider colon when looking at path segments on Windows - Moves non-shared code out of PathInternal - Fix span GetDirectoryName to handle multiple separators * Comment updates * Check for valid drive letter with PathRoot Remove other usages of PathSkip (related to #16311) Signed-off-by: dotnet-bot <[email protected]>
* Test updates for dotnet/coreclr#16447 * Move variant test to own method. Add GetFileName tests for volume separators. Commit migrated from dotnet/corefx@24334bf
Aggressive checks are preventing crossplat and extended Windows solutions. This change:
I've marked this as no merge- I'll be linking in the necessary test fixes (not many).