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