\")\n+ .append(\"Listing of: \")\n+ .append(dirPath)\n+ .append(\"\\r\\n\")\n+\n+ .append(\"
Listing of: \")\n+ .append(dirPath)\n+ .append(\"
\\r\\n\")\n+\n+ .append(\"
\")\n+ .append(\"- ..
\\r\\n\");\n+\n+ File[] files = dir.listFiles();\n+ if (files != null) {\n+ for (File f : files) {\n+ if (f.isHidden() || !f.canRead()) {\n+ continue;\n+ }\n+\n+ String name = f.getName();\n+ if (!ALLOWED_FILE_NAME.matcher(name).matches()) {\n+ continue;\n+ }\n+\n+ buf.append(\"- \")\n+ .append(name)\n+ .append(\"
\\r\\n\");\n+ }\n+ }\n+\n+ buf.append(\"