Function: ange-ftp-get-files
ange-ftp-get-files is a byte-compiled function defined in
ange-ftp.el.gz.
Signature
(ange-ftp-get-files DIRECTORY &optional NO-ERROR)
Documentation
Given a DIRECTORY, return a hashtable of file entries.
This will give an error or return nil, depending on the value of NO-ERROR, if a listing for DIRECTORY cannot be obtained.
Source Code
;; Defined in /usr/src/emacs/lisp/net/ange-ftp.el.gz
(defun ange-ftp-get-files (directory &optional no-error)
"Given a DIRECTORY, return a hashtable of file entries.
This will give an error or return nil, depending on the value of
NO-ERROR, if a listing for DIRECTORY cannot be obtained."
(setq directory (file-name-as-directory directory)) ;normalize
(or (gethash directory ange-ftp-files-hashtable)
(save-match-data
(and (ange-ftp-ls directory
;; This is an efficiency hack. We try to
;; anticipate what sort of listing dired
;; might want, and cache just such a listing.
(or (and (boundp 'dired-actual-switches)
(ange-ftp-switches-ok dired-actual-switches))
(and (boundp 'dired-listing-switches)
(ange-ftp-switches-ok
dired-listing-switches))
"-al")
t no-error)
(gethash directory ange-ftp-files-hashtable)))))