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))