+list_dir(){
+ dir="$(HTML "$1")"
+ printf '[a .list .dir href="%s" %s]' \
+ "$dir" "$dir"
+}
+
+list_file(){
+ file="$(HTML "$1")"
+ printf '[div .list .file [a href="%s" [img src="%s?a=thumbnail"] %s]]' \
+ "$file" "$file" "$file"
+}
+
+list_dirs(){
+ (cd "$_DATA/$ITEM";
+ find ./ -type d -mindepth 1 -maxdepth 1 \
+ -exec stat -c '%Y %n' '{}' +
+ ) \
+ | { [ "$(GET o)" = Date ] && sort -rn || sort -k 2; } \
+ | cut -d/ -f2-
+}
+
+list_files(){
+ (cd "$_DATA/$ITEM";
+ find ./ -type f -mindepth 1 -maxdepth 1 \
+ -exec stat -c '%Y %n' "${f#./}" '{}' +
+ ) \
+ | { [ "$(GET o)" = Date ] && sort -rn || sort -k 2; } \
+ | cut -d/ -f2-
+}
+
+list_tree(){
+ (cd "$_DATA/$ITEM";
+ find ./ -type f \
+ -exec stat -c '%Y %n' '{}' +
+ ) \
+ | { [ "$(GET o)" = Date ] && sort -rn || sort -k 2; } \
+ | cut -d/ -f2-
+}
+