caddy/modules/caddyhttp/fileserver
Chandler Swift 7471532ea7
file_server: Implement natural sort for browse templates
For files with regions of numbers and other characters, it's intuitive
to have the numbers sorted by increasing numeric value rather than by
ASCII code. (Jeff Atwood has a nice article here:
https://blog.codinghorror.com/sorting-for-humans-natural-sort-order/)

For example, the listing for a directory containing `foo1`, `foo2`, and
`foo10` would sort in that order, rather than putting `foo10` between
`foo1` and `foo2`.

Closes #7226
2025-10-05 23:17:01 -05:00
..
testdata file_server: Implement natural sort for browse templates 2025-10-05 23:17:01 -05:00
browse.go file_server: use the UTC timezone for modified time (#6830) 2025-02-10 08:39:43 -07:00
browse.html fileserver: denote license for embedded JavaScript for LibreJS (#7127) 2025-07-16 11:49:49 -06:00
browsetplcontext.go file_server: Implement natural sort for browse templates 2025-10-05 23:17:01 -05:00
browsetplcontext_test.go fileserver: Use EscapedPath for browse (#5534) 2023-05-15 10:48:05 -06:00
caddyfile.go fileserver: good default for precompressed (#6736) 2024-12-10 08:31:43 -07:00
command.go fileserver: Add file_limit option for browse (to be experimental) (#6648) 2024-11-05 09:35:32 -07:00
matcher.go chore: upgrade .golangci.yml and workflow to v2 (#6924) 2025-06-03 02:24:32 +03:00
matcher_test.go events: Refactor; move Event into core, so core can emit events (#6930) 2025-03-29 08:15:43 -06:00
natsort.go file_server: Implement natural sort for browse templates 2025-10-05 23:17:01 -05:00
natsort_test.go file_server: Implement natural sort for browse templates 2025-10-05 23:17:01 -05:00
staticfiles.go fileserver: set Content-Length for precompressed files (#7251) 2025-09-10 22:48:03 -06:00
staticfiles_test.go caddyhttp: Refactor and export SanitizedPathJoin for use in fastcgi (#4207) 2021-06-17 09:59:08 -06:00