Skip to content

Commit

Permalink
reimplement extname
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Nov 1, 2015
1 parent 7dd82fb commit 96ef8ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/posix.lisp
Expand Up @@ -128,10 +128,10 @@
base))

(defun extname (path)
(let ((pathname (pathname path)))
(if (pathname-type pathname)
(format nil ".~A" (pathname-type pathname))
"")))
(multiple-value-bind (root dir base ext)
(posix-split-path path)
(declare (ignore root dir base))
ext))

(defun parse (path)
(multiple-value-bind (root dir base ext)
Expand Down

0 comments on commit 96ef8ac

Please sign in to comment.