Function: tramp-crypt-dissect-file-name
tramp-crypt-dissect-file-name is a byte-compiled function defined in
tramp-crypt.el.gz.
Signature
(tramp-crypt-dissect-file-name NAME)
Documentation
Return a tramp-file-name structure for NAME.
The structure consists of the tramp-crypt-method method, the
local user name, the hexlified directory NAME as host, and the
localname.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-crypt.el.gz
;; `auth-source' requires a user.
(defun tramp-crypt-dissect-file-name (name)
"Return a `tramp-file-name' structure for NAME.
The structure consists of the `tramp-crypt-method' method, the
local user name, the hexlified directory NAME as host, and the
localname."
(save-match-data
(if-let* ((dir (tramp-crypt-file-name-p name)))
(make-tramp-file-name
:method tramp-crypt-method :user (user-login-name)
:host (url-hexify-string dir))
(tramp-user-error nil "Not an encrypted remote directory: \"%s\"" name))))