Eli says it is a bad hack.
svn: r16998
This commit is contained in:
parent
9f57ba92f1
commit
7662ef4bc1
|
@ -65,13 +65,7 @@
|
||||||
(not (directory-exists? base)))
|
(not (directory-exists? base)))
|
||||||
(make-directory* base))
|
(make-directory* base))
|
||||||
(unless (directory-exists? dir)
|
(unless (directory-exists? dir)
|
||||||
(with-handlers ([exn:fail:filesystem?
|
(make-directory dir))))
|
||||||
(lambda (x)
|
|
||||||
(unless (and (regexp-match #rx"cannot make directory:.+File exists"
|
|
||||||
(exn-message x))
|
|
||||||
(directory-exists? dir))
|
|
||||||
(raise x)))])
|
|
||||||
(make-directory dir)))))
|
|
||||||
|
|
||||||
(define (make-temporary-file [template "mztmp~a"] [copy-from #f] [base-dir #f])
|
(define (make-temporary-file [template "mztmp~a"] [copy-from #f] [base-dir #f])
|
||||||
(with-handlers ([exn:fail:contract?
|
(with-handlers ([exn:fail:contract?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user