Kit-Yan Choi <k...@kychoi.org> writes: > Michael,
Hi Kit, > Thanks for the suggestion. Indeed `file-local-copy' would have made > the code cleaner. Yet `file-local-copy' generates a new filename each > time it's run. But I wanted to allow the code to check whether the > remote image has already been fetched before and so skip unnecessary > file transfer, which takes time (think of it like "rsync -a"). > Therefore I wanted to preserve the remote path under a temporary > directory. After first retrieval via file-local-copy, you could cache this information somewhere for later use. Or you could write a ticket towards Tramp, that file-local-copy shall remember that a file was downloaded already, and should offer that file for reuse. Note: I'm the Tramp maintainer :-) > Best, > Kit Best regards, Michael.