mirror of
https://github.com/rclone/rclone.git
synced 2026-10-09 14:39:28 -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.
15 lines
404 B
Plaintext
15 lines
404 B
Plaintext
# Go writes go.mod and go.sum with lf even on windows
|
|
go.mod text eol=lf
|
|
go.sum text eol=lf
|
|
|
|
# Embedded templates must render the same on every OS
|
|
lib/http/templates/** text eol=lf
|
|
|
|
# Ignore generated files in GitHub language statistics and diffs
|
|
/MANUAL.* linguist-generated=true
|
|
/rclone.1 linguist-generated=true
|
|
|
|
# Don't fiddle with the line endings of test data
|
|
**/testdata/** -text
|
|
**/test/** -text
|