stat="$(stat -c '%s %Y' -- "$file" 2>&-)" || continue
size="${stat% *}" date="${stat#* }"
- printf '<li><span class=name>%s</span>
+ printf '<li><a class=name href="[attachment]/%s">%s</a>
<span class=size>%s</span><span class=date>%s</span></li>' \
- "$(HTML "${file##*/}")" "$(size_human "$size")" "$(date -d @"$date" +"%F %T")"
+ "$(HTML "${file##*/}")" "$(HTML "${file##*/}")" \
+ "$(size_human "$size")" "$(date -d @"$date" +"%F %T")"
done
printf %s\\n '</ul>'