<% if (directoryPath !== '/') { %>
<% } %>
Directory Listing for <%= directoryPath %>
<% items.forEach(item => { %>
-
<% if (item.isDirectory) { %>
<% } else {
const extension = item.name.split('.').pop().toLowerCase();
%>
<% } %>
<%= item.name %>
<% if (!item.isDirectory) { %>
<%= item.size %>
View Raw
<% } %>
<% }); %>