2007-06-23 Eli Zaretskii <eliz@gnu.org>
* ls-lisp.el (insert-directory): Don't treat FILE as a wildcard if
- FILE exists as a directory.
+ FILE exists as a file.
2007-06-22 Jay Belanger <jay.p.belanger@gmail.com>
;; there is no wildcard, only a directory name.
(if (and ls-lisp-support-shell-wildcards
(string-match "[[?*]" file)
- ;; Prefer an existing directory to wildcards, like
+ ;; Prefer an existing file to wildcards, like
;; dired-noselect does.
- (not (file-directory-p file)))
+ (not (file-exists-p file)))
(progn
(or (not (eq (aref file (1- (length file))) ?/))
(setq file (substring file 0 (1- (length file)))))