tramp-handle-file-name-directory

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

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

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