Next: , Up: Files directories and localnames

8.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.