fix: add key to remove sort

This commit is contained in:
Daylin Morgan 2024-07-12 12:16:22 -05:00
parent 960d7acf26
commit 247f80921d
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -3441,7 +3441,7 @@ class Viv:
if cli.is_file():
to_remove.append(cli)
to_remove = list(set(to_remove))
to_remove = sorted(set(to_remove), key=lambda p: p.is_file())
if confirm(
"Remove the above files/directories?",
"\n".join(f" - {a.red}{p}{a.end}" for p in to_remove) + "\n",