diff --git a/collects/mzlib/file.ss b/collects/mzlib/file.ss index 03e93b6..c626dd8 100644 --- a/collects/mzlib/file.ss +++ b/collects/mzlib/file.ss @@ -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