Function: ange-ftp-reread-dir

ange-ftp-reread-dir is an autoloaded, interactive and byte-compiled function defined in ange-ftp.el.gz.

Signature

(ange-ftp-reread-dir &optional DIR)

Documentation

Reread remote directory DIR to update the directory cache.

The implementation of remote FTP file names caches directory contents for speed. Therefore, when new remote files are created, Emacs may not know they exist. You can use this command to reread a specific directory, so that Emacs will know its current contents.

Key Bindings

Aliases

ange-ftp-re-read-dir

Source Code

;; Defined in /usr/src/emacs/lisp/net/ange-ftp.el.gz
;;;###autoload
(defun ange-ftp-reread-dir (&optional dir)
  "Reread remote directory DIR to update the directory cache.
The implementation of remote FTP file names caches directory contents
for speed.  Therefore, when new remote files are created, Emacs
may not know they exist.  You can use this command to reread a specific
directory, so that Emacs will know its current contents."
  (interactive)
  (if dir
      (setq dir (expand-file-name dir))
    (setq dir (file-name-directory (expand-file-name (buffer-string)))))
  (if (ange-ftp-ftp-name dir)
      (progn
	(setq ange-ftp-ls-cache-file nil)
	(remhash dir ange-ftp-files-hashtable)
	(ange-ftp-get-files dir t))))