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
b59185fc
Commit
b59185fc
authored
2 years ago
by
Raymond Toy
Browse files
Options
Downloads
Patches
Plain Diff
Fix
#136
: ensure-directories-exist should return the given pathspec
parent
9c0f63ff
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/code/filesys.lisp
+1
-1
1 addition, 1 deletion
src/code/filesys.lisp
tests/filesys.lisp
+3
-3
3 additions, 3 deletions
tests/filesys.lisp
with
4 additions
and
4 deletions
src/code/filesys.lisp
+
1
−
1
View file @
b59185fc
...
@@ -1478,4 +1478,4 @@ optionally keeping some of the most recent old versions."
...
@@ -1478,4 +1478,4 @@ optionally keeping some of the most recent old versions."
(
retry
()
:report
"Try to create the directory again"
(
retry
()
:report
"Try to create the directory again"
(
go
retry
))))))
(
go
retry
))))))
;; Only the first path in a search-list is considered.
;; Only the first path in a search-list is considered.
(
return
(
values
path
name
created-p
))))))
(
return
(
values
path
spec
created-p
))))))
This diff is collapsed.
Click to expand it.
tests/filesys.lisp
+
3
−
3
View file @
b59185fc
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
(
define-test
unix-namestring.1.exists
(
define-test
unix-namestring.1.exists
;; Make sure the desired directories exist.
;; Make sure the desired directories exist.
(
assert-equal
#P
"/tmp/foo/bar/hello.txt"
(
assert-equal
"/tmp/foo/bar/hello.txt"
(
ensure-directories-exist
"/tmp/foo/bar/hello.txt"
))
(
ensure-directories-exist
"/tmp/foo/bar/hello.txt"
))
(
dolist
(
path
'
(
"/tmp/hello.txt"
(
dolist
(
path
'
(
"/tmp/hello.txt"
"/tmp/foo/"
"/tmp/foo/"
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
(
define-test
unix-namestring.1.non-existent
(
define-test
unix-namestring.1.non-existent
;; Make sure the desired directories exist.
;; Make sure the desired directories exist.
(
assert-equal
#P
"/tmp/foo/bar/hello.txt"
(
assert-equal
"/tmp/foo/bar/hello.txt"
(
ensure-directories-exist
"/tmp/foo/bar/hello.txt"
))
(
ensure-directories-exist
"/tmp/foo/bar/hello.txt"
))
;; These paths contain directories that don't exist.
;; These paths contain directories that don't exist.
(
dolist
(
path
'
(
"/tmp/oops/"
(
dolist
(
path
'
(
"/tmp/oops/"
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
(
define-test
unix-namestring.2
(
define-test
unix-namestring.2
;; Make sure the desired directories exist.
;; Make sure the desired directories exist.
(
assert-equal
#P
"/tmp/foo/bar/hello.txt"
(
assert-equal
"/tmp/foo/bar/hello.txt"
(
ensure-directories-exist
"/tmp/foo/bar/hello.txt"
))
(
ensure-directories-exist
"/tmp/foo/bar/hello.txt"
))
(
unwind-protect
(
unwind-protect
(
progn
(
progn
...
...
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