implement argument option to append trailing slash to files match pattern(s), update crate version

This commit is contained in:
yggverse 2025-07-02 15:25:22 +03:00
parent ff323e58c7
commit dc44d38761
5 changed files with 106 additions and 80 deletions

View file

@ -240,9 +240,17 @@ impl Public {
if fc.alt.is_size {
a.push(b(file.meta.size()))
}
if !l.ends_with('/') {
for p in &fc.append_slash {
if p.is_match(&l) {
l.push('/');
break;
}
}
}
if !a.is_empty() {
l.push(' ');
l.push_str(&a.join(", "));
l.push_str(&a.join(", "))
}
l
})