guard a file-exists? call properly

This commit is contained in:
Robby Findler 2013-11-12 10:36:04 -06:00
parent d2ec491794
commit ca1c97f00e

View File

@ -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"]))