use percent encoding on filenames

This commit is contained in:
Lilian Jónsdóttir 2024-08-05 23:09:00 -07:00
parent d6f066095b
commit d8ec25b36d
3 changed files with 25 additions and 9 deletions

View file

@ -669,7 +669,7 @@ func newRow(file files.File, workdir string) table.Row {
size = humanize.Bytes(uint64(file.Filesize()))
}
return table.Row{
dirs.UnEscape(file.Name()),
dirs.PercentDecode(file.Name()),
dirs.UnExpand(filepath.Dir(file.Path()), workdir),
time,
size,