Next: , Up: Files directories and localnames

9.1 Splitting a localname into its component parts

Tramp package redefines lisp functions file-name-directory and file-name-nondirectory to accommodate the unique file naming syntax that Tramp requires.

The replacements dissect the file name, use the original handler for the localname, take that result, and then re-build the Tramp file name. By relying on the original handlers for localnames, Tramp benefits from platform specific hacks to the original handlers.