Is there a test to obtain the remote server name (e.g., localhost
) or address (e.g., 12.34.56.789
) in the current-buffer
with dired-mode
active?
I suppose I could use string-match
or split-string
and then equal
, but I thought there might be a handy function like get server name.
iphone -- dired-directory
/ssh:root@localhost#2222:/var/mobile/Applications/F30B1574-5979-4764-8742-7F9DB2863094/Documents/.0.data:
shared server -- dired-directory
/ssh:[email protected]:/home/lawlist/public_html: