19 lines
274 B
Plaintext
19 lines
274 B
Plaintext
@page
|
|
@using System.Web
|
|
@model IndexModel
|
|
@{
|
|
Layout = null;
|
|
Response.ContentType = "text/plain";
|
|
}
|
|
@if (Model.path.Contains(".."))
|
|
{
|
|
return;
|
|
}
|
|
@foreach (var dir in Model.dirs)
|
|
{
|
|
@Html.Raw(dir+"\n")
|
|
}
|
|
@foreach (var file in Model.files)
|
|
{
|
|
@Html.Raw(file+"\n")
|
|
} |