The code sample is wrong.
The role of Server.MapPath
is indeed to transform a virtual path into a physical one. If you already have a physical path, there'a no need for Server.MapPath
.
The code will probably throw an Exception with the message:
'd:\inetpub\inbound\myfile.txt' is a physical path, but a virtual path was expected.