From 04f196c7c5c9601a9d7e64e013cc9846c4b2e1fe Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Wed, 28 Feb 2018 21:20:29 +0100 Subject: Put dirlisting in repository --- dirlisting.html | 32 ++++++++++++++++++++++++++++++++ webserver.js | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 dirlisting.html diff --git a/dirlisting.html b/dirlisting.html new file mode 100644 index 0000000..c5a8ecf --- /dev/null +++ b/dirlisting.html @@ -0,0 +1,32 @@ + + + + +Directory <!--DIRDIR--> + + + + +

Directory ><

+
+
+ + diff --git a/webserver.js b/webserver.js index c59cd9f..ab524ca 100755 --- a/webserver.js +++ b/webserver.js @@ -102,7 +102,7 @@ function requestFile(req,res,listdirs,path,origpath){ return f!==null; }); res.send( - String(fs.readFileSync(cmn.rootdir+"/web_files/dirlisting.html")) + String(fs.readFileSync(cmn.serverdir+"/dirlisting.html")) .replace("",path) .replace("[/*LISTINGLISTING*/]",JSON.stringify(items)) ); -- cgit v1.2.3-70-g09d2