Function: ido-make-file-list-1

ido-make-file-list-1 is a byte-compiled function defined in ido.el.gz.

Signature

(ido-make-file-list-1 DIR &optional MERGED)

Documentation

Return list of non-ignored files in DIR.

If MERGED is non-nil, each file is cons'ed with DIR.

Source Code

;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defun ido-make-file-list-1 (dir &optional merged)
  "Return list of non-ignored files in DIR.
If MERGED is non-nil, each file is cons'ed with DIR."
  (and (or (ido-is-tramp-root dir) (ido-is-unc-root dir)
	   (file-directory-p dir))
       (delq nil
	     (mapcar
	      (lambda (name)
		(if (not (ido-ignore-item-p name ido-ignore-files t))
		    (if merged (cons name dir) name)))
	      (ido-file-name-all-completions dir)))))