tramp-handle-file-name-as-directory

tramp-handle-file-name-as-directory is a compiled Lisp function in `tramp.el'.

(tramp-handle-file-name-as-directory FILE)

Like `file-name-as-directory' but aware of Tramp files.