Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

File.Move(samePath, samePath) throws exception #497

Open
HugoRoss opened this issue Oct 4, 2018 · 0 comments
Open

File.Move(samePath, samePath) throws exception #497

HugoRoss opened this issue Oct 4, 2018 · 0 comments
Milestone

Comments

@HugoRoss
Copy link

HugoRoss commented Oct 4, 2018

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()

@alphaleonis alphaleonis added this to the vNext milestone Oct 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants