ref: a2e3a1a4993a12d21ab28ffc55ebb95d97ac7970
dir: rc-gemd/handlers/static-or-index
#!/bin/rc full_path=`{echo $"fs_root^$"location | urlencode -d} full_path=$"full_path if(~ $"location */) exec dir-index if(test -d $full_path){ location=$location^'/' exec dir-index } exec serve-static