Skip to content

sharmaeklavya2/auto-index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto-Index

Recursively generate a directory listing for every directory.

Live example

My downloads website

How to run

./auto-index.py <dirpath>

Features

  • 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.

Excluding

  • 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.

Credits

SVG icons are derived from FontAwesome. I modified their dimensions and color.

License

Everything except the icons is licensed under the MIT License (see LICENSE.txt).

About

Recursively generate HTML directory listing.

Topics

Resources

License

Stars

Watchers

Forks