[racket] Behavior of file-exists? and directory-list

From: Danny Yoo (dyoo at hashcollision.org)
Date: Thu Dec 6 18:15:55 EST 2012

> One of my Racket projects scans the PATH directories to locate
> the Java executable, if one is installed.
>

If you're searching through PATHt, you should be able to use
find-executable-path.

http://docs.racket-lang.org/reference/Filesystem.html#(def._((lib._racket/private/misc..rkt)._find-executable-path))


For example:

   (find-executable-path "java.exe")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121206/75f15abf/attachment.html>

Posted on the users mailing list.