Function: tramp-get-lock-file

tramp-get-lock-file is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-get-lock-file FILE)

Documentation

Read lockfile info of FILE.

Return nil when there is no lockfile.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-get-lock-file (file)
  "Read lockfile info of FILE.
Return nil when there is no lockfile."
  (when-let ((lockname (tramp-compat-make-lock-file-name file)))
    (or (file-symlink-p lockname)
	(and (file-readable-p lockname)
	     (with-temp-buffer
	       (insert-file-contents-literally lockname)
	       (buffer-string))))))