...gives only "The file exists."
I think this is because File.cs:135 is using throw Common.GetExceptionFromLastWin32Error() instead of Common.ThrowIOError(errorCode, fullPath).
Maybe GetExceptionFromLastWin32Error() could do with taking an optional fullPath argument? It looks like perhaps ThrowIOError and GetExceptionFromLastWin32Error ought to be unified, given what they do - not sure on your thoughts on that.
Thanks for the brilliantly useful library, by the way! :-)
...gives
"The file 'e:\bar' already exists."
in the thrownIOException
'sMessage
, whereas:...gives only
"The file exists."
I think this is because File.cs:135 is usingthrow Common.GetExceptionFromLastWin32Error()
instead ofCommon.ThrowIOError(errorCode, fullPath)
.Maybe
GetExceptionFromLastWin32Error()
could do with taking an optionalfullPath
argument? It looks like perhapsThrowIOError
andGetExceptionFromLastWin32Error
ought to be unified, given what they do - not sure on your thoughts on that.Thanks for the brilliantly useful library, by the way! :-)