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 bkg
|
||||
(cond
|
||||
[(and (file-exists? pth)
|
||||
[(and (path-string? pth)
|
||||
(file-exists? pth)
|
||||
(member 'execute (file-or-directory-permissions pth)))
|
||||
"white"]
|
||||
[else "yellow"]))
|
||||
|
|
Loading…
Reference in New Issue
Block a user