change collection-file-path
to check for compiled by default for ".rkt"
This commit is contained in:
parent
8638a55b67
commit
fc74fa36ef
|
@ -249,11 +249,13 @@ initialized @racket[current-library-collection-links], as follows:
|
||||||
|
|
||||||
|
|
||||||
@defproc*[([(collection-file-path [file path-string?] [collection path-string?] ...+
|
@defproc*[([(collection-file-path [file path-string?] [collection path-string?] ...+
|
||||||
[#:check-compiled? check-compiled? any/c #f])
|
[#:check-compiled? check-compiled? any/c
|
||||||
|
(regexp-match? #rx"[.]rkt$" file)])
|
||||||
path?]
|
path?]
|
||||||
[(collection-file-path [file path-string?] [collection path-string?] ...+
|
[(collection-file-path [file path-string?] [collection path-string?] ...+
|
||||||
[#:fail fail-proc (string? . -> . any)]
|
[#:fail fail-proc (string? . -> . any)]
|
||||||
[#:check-compiled? check-compiled? any/c #f])
|
[#:check-compiled? check-compiled? any/c
|
||||||
|
(regexp-match? #rx"[.]rkt$" file)])
|
||||||
any])]{
|
any])]{
|
||||||
|
|
||||||
Returns the path to the file indicated by @racket[file] in the
|
Returns the path to the file indicated by @racket[file] in the
|
||||||
|
|
|
@ -112,7 +112,9 @@
|
||||||
(define-values (new:collection-file-path)
|
(define-values (new:collection-file-path)
|
||||||
(let ([collection-file-path (new-lambda (file-name
|
(let ([collection-file-path (new-lambda (file-name
|
||||||
collection
|
collection
|
||||||
#:check-compiled? [check-compiled? #f]
|
#:check-compiled? [check-compiled?
|
||||||
|
(and (path-string? file-name)
|
||||||
|
(regexp-match? #rx"[.]rkt$" file-name))]
|
||||||
#:fail [fail (lambda (s)
|
#:fail [fail (lambda (s)
|
||||||
(raise
|
(raise
|
||||||
(exn:fail:filesystem
|
(exn:fail:filesystem
|
||||||
|
|
Loading…
Reference in New Issue
Block a user