Function: ange-ftp-file-symlink-p
ange-ftp-file-symlink-p is a byte-compiled function defined in
ange-ftp.el.gz.
Signature
(ange-ftp-file-symlink-p FILE)
Source Code
;; Defined in /usr/src/emacs/lisp/net/ange-ftp.el.gz
(defun ange-ftp-file-symlink-p (file)
;; call ange-ftp-expand-file-name rather than the normal
;; expand-file-name to stop loops when using a package that
;; redefines both file-symlink-p and expand-file-name.
(setq file (ange-ftp-expand-file-name file))
(if (ange-ftp-ftp-name file)
(condition-case nil
(let ((ent (ange-ftp-get-files (file-name-directory file))))
(and ent
(stringp (setq ent
(gethash (ange-ftp-get-file-part file) ent)))
ent))
;; If we can't read the parent directory, just assume
;; this file is not a symlink.
;; This makes it possible to access a directory that
;; whose parent is not readable.
(file-error nil))
(ange-ftp-real-file-symlink-p file)))