Next: Splitting a localname into its component parts, Up: How file names, directories and localnames are mangled and managed [Contents][Index]
Internally, TRAMP uses "~/.cache/emacs"
as local temporary directory if it exists. Otherwise, the value of
temporary-file-directory
is used, which is often "/tmp".
This local temporary directory is kept in the constant
tramp-compat-temporary-file-directory
. In this manual, we use
"<TMP>" for its value.
The temporary directory on a remote host is "/data/local/tmp" for the adb method, "/C$/Temp" for the smb method, and "/tmp" otherwise. For some methods, this can be customized.
Temporary files have the file name prefix "tramp.". If you want
to change this prefix, for example because you want to identify
temporary files produced by file-local-copy
in your package,
you can bind the variable tramp-temp-name-prefix
temporarily:
(let ((tramp-temp-name-prefix "my-prefix.")) (file-local-copy "/ssh::.emacs")) ⇒ "/tmp/my-prefix.HDfgDZ"