(rontolisp) docs
← cl Package Functions

translate-logical-pathname

(translate-logical-pathname pathname &key)

Translates a logical pathname into the physical one its host's logical-pathname-translations name. A namestring is logical when its prefix before the first : is a host defined there; any other pathname is physical and answers itself, as Common Lisp prescribes.

The logical part is spelled physically -- downcased, ; as /, the version dropped -- and so is each rule's from-wildcard; the first rule that pathname-match-p accepts translates it through translate-pathname. No rule matching signals a file-error.

Lite: a logical pathname is not a value of its own, so merge-pathnames treats its namestring like any other (a relative one is merged under the defaults' directory), and a relative to-wildcard stays relative where SBCL answers an absolute path.

Backend support

All four backends -- one definition in rontolisp source over primitives every backend has.