you can use,
Server.MapPath(string path)
to map files on server.
this method worked for me..
for creating folder use this technique,
add this at beginning,
using System.IO;
to create folder on server use following,
string directoryPath = Server.MapPath("~/WebDAV");
if (!Directory.Exists(directoryPath))
{
Directory.CreateDirectory(directoryPath);
}