Recursively generate a directory listing for every directory.
./auto-index.py <dirpath>
- Looks better than apache and nginx default server index pages.
- Lightweight: no JavaScript required; CSS less than 0.5 KB.
- SVG icons: included as data URLs; only required icons are loaded.
- To exclude an automatic index from being created in a directory,
place a
.noindex
file in that directory. This is useful if you created index.html manually and don't want auto-index to overwrite it. - To exclude a file/directory from being visible in an index,
set its read permission for others (
S_IROTH
) to false. This is useful if you want to prevent others from finding out about the existence of a file/directory.
SVG icons are derived from FontAwesome. I modified their dimensions and color.
Everything except the icons is licensed under the MIT License (see LICENSE.txt
).