Function: tramp-handle-file-notify-valid-p
tramp-handle-file-notify-valid-p is a byte-compiled function defined
in tramp.el.gz.
Signature
(tramp-handle-file-notify-valid-p PROC)
Documentation
Like file-notify-valid-p for Tramp files.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-handle-file-notify-valid-p (proc)
"Like `file-notify-valid-p' for Tramp files."
(and (process-live-p proc)
;; Sometimes, the process is still in status `run' when the
;; file or directory to be watched is deleted already.
(with-current-buffer (process-buffer proc)
(file-exists-p
(concat (file-remote-p default-directory)
(process-get proc 'watch-name))))))