Changeset 15376
- Timestamp:
- 09/09/20 17:09:45 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/directory.lisp
r15369 r15376 33 33 (in-package "SYSTEM") 34 34 35 (defun pathname-as-file (pathname) 35 ;;; utility function for LIST-DIRECTORIES-WITH-WILDCARDS 36 (defun directory-as-file (pathname) 37 "Convert a PATHNAME referencing a directory to a file" 36 38 (let ((directory (pathname-directory pathname))) 37 39 (make-pathname :host nil … … 42 44 :version nil))) 43 45 46 ;;; utility function for LIST-DIRECTORIES-WITH-WILDCARDS 44 47 (defun wild-inferiors-p (component) 45 48 (eq component :wild-inferiors)) … … 143 146 matching-entries) 144 147 (dolist (entry entries) 145 (when (pathname-match-p entry pathname) 148 (when 149 (or 150 (and 151 (file-directory-p entry :wild-error-p nil) 152 (pathname-match-p 153 (directory-as-file entry) pathname)) 154 (pathname-match-p entry pathname)) 146 155 (push 147 156 (if resolve-symlinks
Note: See TracChangeset
for help on using the changeset viewer.