Skip to content

Commit cca8d23

Browse files
committed
Removed function pathname-sans-directory-pathname since it's a duplicate of cl:file-namestring
1 parent d1a728e commit cca8d23

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

fad.lisp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,6 @@ NIL) returns a pathname equal (as per pathname=) to it."
324324
(make-pathname :defaults pathname
325325
:name nil :type nil))
326326

327-
(defun pathname-sans-directory-pathname (pathname)
328-
"Returns a complete pathname containing just the 'file' part of pathname.
329-
330-
This is equivalent to (enough-namestring
331-
PATHNAME (pathname-directory-pathname PATHNAME))."
332-
(make-pathname :defaults pathname :directory '()))
333-
334327
(defun pathname-parent-directory (pathname)
335328
"Returns a pathname which would, by name at least, contain PATHNAME
336329
as one of its direct children. Symlinks can make the parent/child

packages.lisp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
:pathname-as-directory
4848
:pathname-as-file
4949
:pathname-directory-pathname
50-
:pathname-sans-directory-pathname
5150
:pathname-equal
5251
:pathname-parent-directory
5352
:pathname-absolute-p

path.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
(defalias path:dirname (pathname) cl-fad:pathname-directory-pathname)
1313

14-
(defalias path:basename (pathname) cl-fad:pathname-sans-directory-pathname)
14+
(defun path:basename (pathname) (pathname (file-namestring pathname)))
1515

1616
(defalias path:-e (pathname) cl-fad:file-exists-p)
1717

0 commit comments

Comments
 (0)