Function: ffap-all-subdirs
ffap-all-subdirs is a byte-compiled function defined in ffap.el.gz.
Signature
(ffap-all-subdirs DIR &optional DEPTH)
Documentation
Return list of all subdirectories under DIR, starting with itself.
Directories beginning with "." are ignored, and directory symlinks are listed but never searched (to avoid loops). Optional DEPTH limits search depth.
Source Code
;; Defined in /usr/src/emacs/lisp/ffap.el.gz
(defun ffap-all-subdirs (dir &optional depth)
"Return list of all subdirectories under DIR, starting with itself.
Directories beginning with \".\" are ignored, and directory symlinks
are listed but never searched (to avoid loops).
Optional DEPTH limits search depth."
(and (file-exists-p dir)
(ffap-all-subdirs-loop (expand-file-name dir) (or depth -1))))