Click or drag to resize

Web Server Path

Read web server physical folder

Example

Example reads root folder from web server for any method.

C#
string lPath = HttpContext.Server.MapPath("~");
var lFiles = GetFiles(lPath);