mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
* Fix using Directory to move files See dotnet/corefx#19710. NetFX behavior is that you can use Directory to move files. This was broken trying to match other legacy behavior in dotnet/corefx#17913. Tested on NetFX and CoreFX. * Fix check for Unix Unix impl doesn't tolerate a trailing separator. Public api explicitly checks for this. * More fixes and tests Unix won't move the file with a trailing slash. Add more tests for different combinations of trailing slashes. Validated against NetFX. * Attempt to get MoveDirectory further aligned Trying to handle trailing separator on a source file cases in the same way as Windows. * Extend tests, move Unix condition * Another tweak and more tests * Fix comment Commit migrated from https://github.com/dotnet/corefx/commit/ea514e2f4e61bd3128ea3753071af2681f17f063