Function: tramp-adb-handle-file-name-all-completions

tramp-adb-handle-file-name-all-completions is a byte-compiled function defined in tramp-adb.el.gz.

Signature

(tramp-adb-handle-file-name-all-completions FILENAME DIRECTORY)

Documentation

Like file-name-all-completions for Tramp files.

Source Code

;; Defined in /usr/src/emacs/lisp/net/tramp-adb.el.gz
(defun tramp-adb-handle-file-name-all-completions (filename directory)
  "Like `file-name-all-completions' for Tramp files."
  (tramp-skeleton-file-name-all-completions filename directory
    (with-parsed-tramp-file-name (expand-file-name directory) nil
      (when (tramp-adb-do-ls v "-a" localname)
	(with-current-buffer (tramp-get-buffer v)
	  (mapcar
	   (lambda (l)
	     (and (not (string-match-p (rx bol (* blank) eol) l)) l))
	   (split-string (buffer-string) "\n" 'omit)))))))