Function: tramp-handle-file-local-copy

tramp-handle-file-local-copy is a byte-compiled function defined in tramp.el.gz.

Signature

(tramp-handle-file-local-copy FILENAME)

Documentation

Like file-local-copy for Tramp files.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp.el.gz
(defun tramp-handle-file-local-copy (filename)
  "Like `file-local-copy' for Tramp files."
  (with-parsed-tramp-file-name filename nil
    (unless (file-exists-p filename)
      (tramp-compat-file-missing v filename))
    (let ((tmpfile (tramp-compat-make-temp-file filename)))
      (copy-file filename tmpfile 'ok-if-already-exists 'keep-time)
      tmpfile)))