From cd875eff35f145aa7200163d201f400b7c93ed7e Mon Sep 17 00:00:00 2001 From: Thierry Volpiatto Date: Mon, 18 Mar 2024 08:42:17 +0100 Subject: [PATCH] Prevent exiting with a directory when compressing to --- helm-files.el | 1 + 1 file changed, 1 insertion(+) diff --git a/helm-files.el b/helm-files.el index 2699cfc57..86e6b8a0f 100644 --- a/helm-files.el +++ b/helm-files.el @@ -1263,6 +1263,7 @@ ACTION can be `rsync' or any action supported by `helm-dired-action'." (helm-basename cand) "new_archive")) cdir)) + :must-match (and cdir (lambda (f) (not (file-directory-p f)))) :initial-input (or cdir (helm-dwim-target-directory)) :history (helm-find-files-history nil :comp-read nil)))))) (dest-dir-p (file-directory-p dest))