aboutsummaryrefslogtreecommitdiff
path: root/src/util.lisp
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-27 12:36:14 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-27 14:29:20 -0700
commit12c74be550c22d7d7ea57d3fa6645af1d2a9ad6c (patch)
tree877b0cf5b76d234c4e8d51c360fb09b5216caaf2 /src/util.lisp
parent7e636cec14ff587d0afeadafbcc4384a6de366d9 (diff)
downloadconsfigurator-12c74be550c22d7d7ea57d3fa6645af1d2a9ad6c.tar.gz
use PATHNAME-FILE instead of PATHNAME-NAME
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'src/util.lisp')
-rw-r--r--src/util.lisp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.lisp b/src/util.lisp
index 4df14a6..ab41664 100644
--- a/src/util.lisp
+++ b/src/util.lisp
@@ -142,6 +142,11 @@ one solution is to convert your property to a :LISP property."
(unwind-protect (progn ,@forms)
(delete-directory-tree ,dir :validate t))))
+(defun pathname-file (pathname)
+ "Like PATHNAME-NAME but include any file extension."
+ (namestring
+ (enough-pathname pathname (pathname-directory-pathname pathname))))
+
;;;; Progress & debug printing