file-local-copy

file-local-copy is a compiled Lisp function in `files.el'.

(file-local-copy FILE)

Copy the file FILE into a temporary file on this machine.
Returns the name of the local copy, or nil, if FILE is directly
accessible.