guard a file-exists? call properly
This commit is contained in:
parent
d2ec491794
commit
ca1c97f00e
|
@ -136,7 +136,8 @@
|
||||||
(define pth (send racket-path-tf get-value))
|
(define pth (send racket-path-tf get-value))
|
||||||
(define bkg
|
(define bkg
|
||||||
(cond
|
(cond
|
||||||
[(and (file-exists? pth)
|
[(and (path-string? pth)
|
||||||
|
(file-exists? pth)
|
||||||
(member 'execute (file-or-directory-permissions pth)))
|
(member 'execute (file-or-directory-permissions pth)))
|
||||||
"white"]
|
"white"]
|
||||||
[else "yellow"]))
|
[else "yellow"]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user