Function: url-handler-unhandled-file-name-directory

url-handler-unhandled-file-name-directory is a byte-compiled function defined in url-handlers.el.gz.

Signature

(url-handler-unhandled-file-name-directory FILENAME)

Source Code

;; Defined in /usr/src/emacs/lisp/url/url-handlers.el.gz
(defun url-handler-unhandled-file-name-directory (filename)
  (let ((url (url-generic-parse-url filename)))
    (if (equal (url-type url) "file")
        ;; `file' URLs are actually local.  The filename part may be ""
        ;; which really stands for "/".
        ;; FIXME: maybe we should check that the host part is "" or "localhost"
        ;; or some name that represents the local host?
        (or (file-name-as-directory (url-filename url)) "/")
      ;; All other URLs are not expected to be directly accessible from
      ;; a local process.
      nil)))