Function: tramp-gvfs-file-name-handler

tramp-gvfs-file-name-handler is an autoloaded and byte-compiled function defined in tramp-gvfs.el.gz.

Signature

(tramp-gvfs-file-name-handler OPERATION &rest ARGS)

Documentation

Invoke the GVFS related OPERATION and ARGS.

First arg specifies the OPERATION, second arg is a list of arguments to pass to the OPERATION.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-gvfs.el.gz
;;;###tramp-autoload
(defun tramp-gvfs-file-name-handler (operation &rest args)
  "Invoke the GVFS related OPERATION and ARGS.
First arg specifies the OPERATION, second arg is a list of
arguments to pass to the OPERATION."
  ;; `file-remote-p' must not return an error.  (Bug#68976)
  (unless (or tramp-gvfs-enabled (eq operation 'file-remote-p))
    (tramp-user-error nil "Package `tramp-gvfs' not supported"))
  (if-let* ((filename (apply #'tramp-file-name-for-operation operation args))
            (tramp-gvfs-dbus-event-vector
             (and (tramp-tramp-file-p filename)
                  (tramp-dissect-file-name filename)))
            (fn (assoc operation tramp-gvfs-file-name-handler-alist)))
      (prog1 (save-match-data (apply (cdr fn) args))
	(setq tramp-debug-message-fnh-function (cdr fn)))
    (prog1 (tramp-run-real-handler operation args)
      (setq tramp-debug-message-fnh-function operation))))