aboutsummaryrefslogtreecommitdiff
path: root/src/util.lisp
diff options
context:
space:
mode:
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 a109720..d9a6e2c 100644
--- a/src/util.lisp
+++ b/src/util.lisp
@@ -149,6 +149,11 @@ one solution is to convert your property to a :LISP property."
(namestring
(enough-pathname pathname (pathname-directory-pathname pathname))))
+(defun drop-trailing-slash (namestring)
+ (if (string-suffix-p namestring "/")
+ (subseq namestring 0 (1- (length namestring)))
+ namestring))
+
(defmacro quote-nonselfeval (x)
(once-only (x)
`(if (member (type-of ,x) '(cons symbol))