use path-element where needed
svn: r4838
This commit is contained in:
parent
9d04d4dcfc
commit
ed575e9e03
|
@ -355,15 +355,17 @@
|
||||||
base)])
|
base)])
|
||||||
(unless (directory-exists? dir)
|
(unless (directory-exists? dir)
|
||||||
(make-directory* dir))
|
(make-directory* dir))
|
||||||
(values filename
|
(values
|
||||||
(build-path dir (bytes->path
|
filename
|
||||||
(bytes-append
|
(build-path dir
|
||||||
(if (eq? 'windows (system-type))
|
(bytes->path-element
|
||||||
#"_"
|
(bytes-append
|
||||||
#".")
|
(if (eq? 'windows (system-type))
|
||||||
#"LOCK"
|
#"_"
|
||||||
(path->bytes name))))
|
#".")
|
||||||
dir))))])
|
#"LOCK"
|
||||||
|
(path-element->bytes name))))
|
||||||
|
dir))))])
|
||||||
(with-handlers ([exn:fail:filesystem:exists?
|
(with-handlers ([exn:fail:filesystem:exists?
|
||||||
(lambda (x)
|
(lambda (x)
|
||||||
(if lock-there
|
(if lock-there
|
||||||
|
|
Loading…
Reference in New Issue
Block a user