mirror of
https://github.com/rclone/rclone.git
synced 2026-10-09 22:45:26 -04:00
Index writes a directory listing (e.g. index.html) into every directory of a remote so it can be browsed when served as a static website. It is also available over the rc as operations/index. It works like sync. It walks the remote once, renders the listings in memory and compares them with the existing ones by size and hash from the listing, or by reading them where the backend has no hash. Listings in directories which contain nothing else are deleted on backends which can't have empty directories. Listings can be written in the serve http HTML format, the lsjson format, Caddy's browse JSON format, or from a user template. A second rule set (--index-include and friends) controls which directories get listings, --dir-time controls the time shown for directories and --no-modtime avoids reading modification times altogether.