Note that DELETE-DIRECTORY currently has the same problem: it's a SBCL-specific extension, but I'd expect any function accepting a pathname designator to use *default-pathname-defaults* when it works with filesystem. The commit above contains a hunk for DELETE-DIRECTORY too.
Maybe it should be factored out into a macro, like (WITH-PHYSICAL-PATHNAME ...), to enforce uniform *d-p-d* handling over all present and future filesystem functions working with pathnames.
Note that DELETE-DIRECTORY currently has the same problem: it's a SBCL-specific extension, but I'd expect any function accepting a pathname designator to use *default- pathname- defaults* when it works with filesystem. The commit above contains a hunk for DELETE-DIRECTORY too.
Maybe it should be factored out into a macro, like (WITH-PHYSICAL- PATHNAME ...), to enforce uniform *d-p-d* handling over all present and future filesystem functions working with pathnames.