15 lines
253 B
Plaintext
15 lines
253 B
Plaintext
@page
|
|
@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")
|
|
} |