diff options
author | Dean Li <deantvv@gmail.com> | 2021-06-03 13:26:27 +0000 |
---|---|---|
committer | Dean Li <deantvv@gmail.com> | 2021-08-30 11:55:58 +0000 |
commit | 7944db336ca3ef0338369091af60aa2b15789952 (patch) | |
tree | 98d5c2a9e9a007a569710d60328e32713d832b60 /src/config.rs | |
parent | Add CHANGELOG entry for binding behavior revamp (diff) | |
download | miniserve-7944db336ca3ef0338369091af60aa2b15789952.tar.gz miniserve-7944db336ca3ef0338369091af60aa2b15789952.zip |
Implement show symlink destination
Add option `show_symlink_info` to represent show symlink info or not.
(Default to no)
Show symlink destination after symlink symbol in directory listing
Resemble `ls -l` and also the short argument select for this feature
is also `-l`.
Basic testing is included.
Related to #499
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index e47ffc1..86fe314 100644 --- a/src/config.rs +++ b/src/config.rs @@ -95,6 +95,9 @@ pub struct MiniserveConfig { /// If specified, header will be added pub header: Vec<HeaderMap>, + /// If specified, symlink destination will be shown + pub show_symlink_info: bool, + /// If enabled, version footer is hidden pub hide_version_footer: bool, @@ -187,6 +190,7 @@ impl MiniserveConfig { dirs_first: args.dirs_first, title: args.title, header: args.header, + show_symlink_info: args.show_symlink_info, hide_version_footer: args.hide_version_footer, tls_rustls_config: tls_rustls_server_config, }) |