Function: tramp-file-name-archive

tramp-file-name-archive is a byte-compiled function defined in tramp-archive.el.gz.

Signature

(tramp-file-name-archive VEC)

Documentation

Extract the archive file name from VEC.

VEC is expected to be a tramp-file-name, with the method being tramp-archive-method, and the host being a coded URL. The archive name is extracted from the hop part of the VEC structure.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-archive.el.gz
(defsubst tramp-file-name-archive (vec)
  "Extract the archive file name from VEC.
VEC is expected to be a `tramp-file-name', with the method being
`tramp-archive-method', and the host being a coded URL.  The
archive name is extracted from the hop part of the VEC structure."
  (and (tramp-file-name-p vec)
       (string-equal (tramp-file-name-method vec) tramp-archive-method)
       (tramp-file-name-hop vec)))