Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Alan Shields <Alan-S<hields@om...> - 2005-06-07 01:36:31
I hope this is found to be useful. I like it for when running something
for a long time at the repl, and it fails halfway through. Just fix the
issue with the directory and keep going.
--- sbcl-pristine/sbcl-0.9.0/src/code/filesys.lisp 2005-01-01 15:01:29.000000000 -0600
+++ sbcl-0.9.0/src/code/filesys.lisp 2005-06-06 20:23:41.000000000 -0500
@@ -1049,10 +1049,16 @@
(sb!unix:unix-mkdir namestring mode)
(unless (probe-file namestring)
- (error 'simple-file-error
- :pathname pathspec
- :format-control "can't create directory ~A"
- :format-arguments (list namestring)))
+ (restart-case (error 'simple-file-error
+ :pathname pathspec
+ :format-control "can't create directory ~A"
+ :format-arguments (list namestring))
+ (retry ()
+ :report "Retry directory creation."
+ (ensure-directories-exist pathspec :verbose verbose :mode mode))
+ (continue ()
+ :report "Continue as if directory creation was successful."
(setf created-p t)))))
(values pathname created-p))))
From: Juho Snellman <jsnell@ik...> - 2005-08-16 17:13:47
On Mon, Jun 06, 2005 at 08:36:17PM -0500, Alan Shields wrote:
> I hope this is found to be useful. I like it for when running something
> for a long time at the repl, and it fails halfway through. Just fix the
> issue with the directory and keep going.
Seems reasonable. Committed in 0.9.3.60, thanks.