Forum Discussion

LordLeek's avatar
LordLeek
Copper Contributor
Dec 16, 2021

C# Directory.Exists is false positive

.NET6

 

Noticed some curiosity:

System.IO.Directory.Exists("\\server\somefolder") returns true also a File.Move was successfully performed to this folder and the Files are moved into nirvana without any Exception.

 

Yes in Fact \\ did not work and my solution was \\\\ for the correct network path...

 

But is there any deeper meaning in this behavior?

 

 

Thx for some hints @any Developer Buddy :stareyes:

 

 

 

 

 

No RepliesBe the first to reply

Resources