Function: ido-is-root-directory

ido-is-root-directory is a byte-compiled function defined in ido.el.gz.

Signature

(ido-is-root-directory &optional DIR)

Source Code

;; Defined in /usr/src/emacs/lisp/ido.el.gz
(defun ido-is-root-directory (&optional dir)
  (setq dir (or dir ido-current-directory))
  (or
   (string-equal "/" dir)
   (and (memq system-type '(windows-nt ms-dos))
	(string-match "\\`[a-zA-Z]:[/\\]\\'" dir))
   (if ido-enable-tramp-completion
       (ido-is-tramp-root dir)
     (string-match "\\`/[^:/][^:/]+:\\'" dir))))