diff options
author | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2021-03-27 04:13:39 +0000 |
---|---|---|
committer | Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | 2021-03-27 04:13:39 +0000 |
commit | 0f276b6ec8383cea3f3da726682594e5e683033a (patch) | |
tree | 0d554bc521ce64d15a1c1bbd7fdb19210389ad19 /src/renderer.rs | |
parent | (cargo-release) start next development iteration 0.12.2-alpha.0 (diff) | |
download | miniserve-0f276b6ec8383cea3f3da726682594e5e683033a.tar.gz miniserve-0f276b6ec8383cea3f3da726682594e5e683033a.zip |
Resolve symlinks when listing
This has the benefit of showing the size and modification date of the
pointed-to file. Symlink to directories now respects '--dirs-first'
option and broken symlinks don't show in directory listing.
Diffstat (limited to 'src/renderer.rs')
-rw-r--r-- | src/renderer.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index c9ec9cd..2487696 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -341,10 +341,6 @@ fn entry_row( } } } - } @else if entry.is_symlink() { - a.symlink href=(parametrized_link(&entry.link, sort_method, sort_order)) { - (entry.name) span.symlink-symbol { "⇢" } - } } } } |