Description: Verify trash directory exists before moving files there
Author: valoq
Origin: upstream
Forwarded: not-needed
Applied-Upstream: https://github.com/gokcehan/lf/commit/b087bf7d804d14e5dd7e6058aec6bbdc6256f1fa
Reviewed-by: Nick Morrott <nickm@debian.org>
Last-Update: 2025-05-04
---
--- a/etc/lfrc.example
+++ b/etc/lfrc.example
@@ -60,7 +60,7 @@
 
 # move current file or selected files to trash folder
 # (also see 'man mv' for backup/overwrite options)
-cmd trash %set -f; mv $fx ~/.trash
+cmd trash %set -f; mv -t ~/.trash $fx
 
 # define a custom 'delete' command
 # cmd delete ${{
