Function: tramp-smb-get-share

tramp-smb-get-share is a byte-compiled function defined in tramp-smb.el.gz.

Signature

(tramp-smb-get-share VEC)

Documentation

Return the share name of LOCALNAME.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-smb.el.gz
;; Internal file name functions.

(defun tramp-smb-get-share (vec)
  "Return the share name of LOCALNAME."
  (save-match-data
    (let ((localname (tramp-file-name-unquote-localname vec)))
      (when (string-match
	     (tramp-compat-rx bol (? "/") (group (+ (not "/"))) "/") localname)
	(match-string 1 localname)))))