geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit a0062e9cd00351ee001c3fcf27850324159da683
parent 19f0f8840233b5a0cac3fdb4e251c5a7f29c6c4a
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat,  2 Apr 2022 22:54:39 +0200

Add dirlisting example with map.gph support, like gophernicus.

Diffstat:
cgi-examples/maplisting.dcgi | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/cgi-examples/maplisting.dcgi b/cgi-examples/maplisting.dcgi @@ -0,0 +1,10 @@ +#!/bin/sh +# +# List all .md files in some directory and show a dir listing. +# Display map.gph first. +# + +[ -f map.gph ] && cat map.gph + +find *.md -printf "[0|%TY-%Tm-%Td %f|%f|server|port]\r\n" | sort -r +