Uh oh!
There was an error while loading. Please reload this page.
Remove sourceFullPath from Unix FileSystem.MoveDirectory exception - #55658
Conversation
Switched method from a private protection level to an internal protection level. Also removed trailing whitespace.
ghost
commented
Jul 14, 2021
Tagging subscribers to this area: @dotnet/area-system-io Issue DetailsSummaryRemoves the For reference, see the first possible solution for this problem (#50833 (comment)):
Other minor fixes
Fixes #50833
|
For reference, not really. The compiler's still going to generate cascading ifs, similar to the original source code: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
stephentoub
commented
Jul 16, 2021
Thanks. |
Summary
Removes the
sourceFullPathargument from the exception thrown when a destination file path forDirectory.Movehas a parent that doesn't exist in Unix. This matches the functionality of Windows. The results should be more consistent and less confusing exceptions from theDirectory.Movemethod on both Unix and Windows platforms.For reference, see the first possible solution for this problem #50833 (comment):
Other minor fixes
Fixes#50833