diff options
Diffstat (limited to 'src/util.lisp')
-rw-r--r-- | src/util.lisp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util.lisp b/src/util.lisp index c8dc04c..1feb97a 100644 --- a/src/util.lisp +++ b/src/util.lisp @@ -140,8 +140,9 @@ one solution is to convert your property to a :LISP property." (defun pathname-file (pathname) "Like PATHNAME-NAME but include any file extension." - (namestring - (enough-pathname pathname (pathname-directory-pathname pathname)))) + (and (pathname-name pathname) + (namestring + (enough-pathname pathname (pathname-directory-pathname pathname))))) (defun drop-trailing-slash (namestring) (if (string-suffix-p namestring "/") |