tramp-dissect-file-name

tramp-dissect-file-name is a compiled Lisp function in `tramp.el'.

(tramp-dissect-file-name NAME &optional NODEFAULT)

Return a `tramp-file-name' structure.
The structure consists of remote method, remote user, remote host
and localname (file name on remote host). If NODEFAULT is
non-nil, the file name parts are not expanded to their default
values.