[browser][io] Workaround for issue MoveDirectory (#40310)
authorKenneth Pouncey <kjpou@pt.lu>
Tue, 4 Aug 2020 14:57:14 +0000 (16:57 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Aug 2020 14:57:14 +0000 (16:57 +0200)
commit21ea59f90044f4f662117fc43022f07eafb485cd
treea4bbdcc526826d8ec63cdb558c1ae8c38ab89cc9
parentc469ac9f3a9687bc118d899047a166e327e2a33e
[browser][io] Workaround for issue MoveDirectory (#40310)

* [browser][io] Workaround for issue MoveDirectory

- Issue workaround while waiting for emscripten fix.  https://github.com/dotnet/runtime/issues/40305
- The following code checks for the existence of the source and destination directories which replaces the same code in the emscripten code.

emscripten tracking issue:  https://github.com/emscripten-core/emscripten/issues/11804

* Update src/libraries/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs

Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
Co-authored-by: Alexander Köplinger <alex.koeplinger@outlook.com>
src/libraries/System.IO.FileSystem/src/System/IO/FileSystem.Unix.cs