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
30708f20
Commit
30708f20
authored
19 years ago
by
rtoy
Browse files
Options
Downloads
Patches
Plain Diff
Add a restart to ENSURE-DIRECTORIES-EXIST to retry directory
creation. From Eduardo Munoz, cmucl-imp, 2005/07/31.
parent
950d9f01
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
+18
-13
18 additions, 13 deletions
code/filesys.lisp
with
18 additions
and
13 deletions
code/filesys.lisp
+
18
−
13
View file @
30708f20
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.8
6
2005/0
2/10 15:57:08
rtoy Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.8
7
2005/0
8/22 20:29:19
rtoy Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -1328,17 +1328,22 @@ optionally keeping some of the most recent old versions."
...
@@ -1328,17 +1328,22 @@ optionally keeping some of the most recent old versions."
:host
(
pathname-host
pathname
)
:host
(
pathname-host
pathname
)
:device
(
pathname-device
pathname
)
:device
(
pathname-device
pathname
)
:directory
(
subseq
dir
0
i
))))
:directory
(
subseq
dir
0
i
))))
(
unless
(
probe-file
newpath
)
(
tagbody
(
let
((
namestring
(
namestring
newpath
)))
retry
(
when
verbose
(
restart-case
(
format
*standard-output*
"~&Creating directory: ~A~%"
(
unless
(
probe-file
newpath
)
namestring
))
(
let
((
namestring
(
namestring
newpath
)))
(
unix:unix-mkdir
namestring
mode
)
(
when
verbose
(
unless
(
probe-file
namestring
)
(
format
*standard-output*
"~&Creating directory: ~A~%"
(
error
'simple-file-error
namestring
))
:pathname
pathspec
(
unix:unix-mkdir
namestring
mode
)
:format-control
"Can't create directory ~A."
(
unless
(
probe-file
namestring
)
:format-arguments
(
list
namestring
)))
(
error
'simple-file-error
(
setf
created-p
t
)))))
:pathname
pathspec
:format-control
"Can't create directory ~A."
:format-arguments
(
list
namestring
)))
(
setf
created-p
t
)))
(
retry
()
:report
"Try to create the directory again"
(
go
retry
))))))
;; Only the first path in a search-list is considered.
;; Only the first path in a search-list is considered.
(
return
(
values
pathname
created-p
))))))
(
return
(
values
pathname
created-p
))))))
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