Daftar Halaman HTML Konten Folder
Generate index.html file for specific folders
tree
tree is a minimalistic utility that is available on most unix-like
systems (ubuntu/debian: sudo apt install tree,
mac: brew install tree, windows: zip).
tree can generate plain text, XML, JSON or HTML output.
Generate an HTML directory index one level deep:
tree -H '.' -L 1 --noreport --charset utf-8 -o index.html
Only include specific file types that match a glob pattern, e.g. *.zip files:
tree -H '.' -L 1 --noreport --charset utf-8 -P "*.zip" -o index.html
The argument to -H is what will be used as a base href,
so you can pass either a relative path such as . or an absolute path
from the web root, such as /files.
-L 1 limits the listing to the current directory only.
Merwanski