AlphaFS icon indicating copy to clipboard operation
AlphaFS copied to clipboard

File.Move(samePath, samePath) throws exception

Open HugoRoss opened this issue 6 years ago • 0 comments

Stumbled over a compatibility issue in AlphaFS:

In System.IO, a call to File.Move where the source and the target file path are identical is ignored, in AlphaFS an exception is thrown.

AlphaFS error message (sorry in German, although I changed the current thread's cultures to en-US):

"(143) Das System kann einem Verzeichnis auf dem gleichen Laufwerk kein Laufwerk mit JOIN oder SUBST zuordnen: [C:\temp\foo.txt]"

Expected behavior: Ignore as in System.IO.File.Move()

HugoRoss avatar Oct 04 '18 09:10 HugoRoss