Hide parent dir button if in root

This commit is contained in:
bingus_violet 2024-01-19 18:46:58 +00:00
parent 7faecc66b9
commit 97d5ad79f5

View file

@ -38,7 +38,9 @@ app.get("/*", (req, res) => {
res.write(baseStart)
res.write('<a href="../">Parent Directory</a><br>')
if (file != '') {
res.write('<a href="../">Parent Directory</a><br>')
}
for (let index = 0; index < dirContents.length; index++) {
const file = dirContents[index];