Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
b0e17dab
Commit
b0e17dab
authored
31 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Undid last change, because that's the wrong place to put it.
parent
bdaa0482
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/filesys.lisp
+17
-20
17 additions, 20 deletions
code/filesys.lisp
with
17 additions
and
20 deletions
code/filesys.lisp
+
17
−
20
View file @
b0e17dab
...
...
@@ -6,7 +6,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.3
3
1993/08/0
3 13:57:35
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.3
4
1993/08/0
4 09:37:47
ram Exp $"
)
;;;
;;; **********************************************************************
;;;
...
...
@@ -504,25 +504,22 @@
,
result
))))
(
defun
%enumerate-matches
(
pathname
verify-existance
function
)
(
let
((
pathname
(
if
(
typep
pathname
'logical-pathname
)
(
translate-logical-pathname
pathname
)
pathname
)))
(
when
(
pathname-type
pathname
)
(
unless
(
pathname-name
pathname
)
(
error
"Cannot supply a type without a name:~% ~S"
pathname
)))
(
when
(
and
(
integerp
(
pathname-version
pathname
))
(
member
(
pathname-type
pathname
)
'
(
nil
:unspecific
)))
(
error
"Cannot supply a version without a type:~% ~S"
pathname
))
(
let
((
directory
(
pathname-directory
pathname
)))
(
if
directory
(
ecase
(
car
directory
)
(
:absolute
(
%enumerate-directories
"/"
(
cdr
directory
)
pathname
verify-existance
function
))
(
:relative
(
%enumerate-directories
""
(
cdr
directory
)
pathname
verify-existance
function
)))
(
%enumerate-files
""
pathname
verify-existance
function
)))))
(
when
(
pathname-type
pathname
)
(
unless
(
pathname-name
pathname
)
(
error
"Cannot supply a type without a name:~% ~S"
pathname
)))
(
when
(
and
(
integerp
(
pathname-version
pathname
))
(
member
(
pathname-type
pathname
)
'
(
nil
:unspecific
)))
(
error
"Cannot supply a version without a type:~% ~S"
pathname
))
(
let
((
directory
(
pathname-directory
pathname
)))
(
if
directory
(
ecase
(
car
directory
)
(
:absolute
(
%enumerate-directories
"/"
(
cdr
directory
)
pathname
verify-existance
function
))
(
:relative
(
%enumerate-directories
""
(
cdr
directory
)
pathname
verify-existance
function
)))
(
%enumerate-files
""
pathname
verify-existance
function
))))
(
defun
%enumerate-directories
(
head
tail
pathname
verify-existance
function
)
(
if
tail
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment