fix: ensure dirs are presented with trailing slash
Prevent invalid links always starting from the webserver root.
This commit is contained in:
parent
caacb91123
commit
3355dc9e9a
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ async fn file_view(
|
||||||
let folders = s3_objects.common_prefixes.into_iter().map(|dir| {
|
let folders = s3_objects.common_prefixes.into_iter().map(|dir| {
|
||||||
let dirname = dir.parts().last().unwrap();
|
let dirname = dir.parts().last().unwrap();
|
||||||
FileViewItem {
|
FileViewItem {
|
||||||
path: dirname.as_ref().into(),
|
path: format!("{}/", dirname.as_ref().to_string()),
|
||||||
size_bytes: 0,
|
size_bytes: 0,
|
||||||
size: "[DIR]".to_owned(),
|
size: "[DIR]".to_owned(),
|
||||||
last_modification: String::default(),
|
last_modification: String::default(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue