file-exists?   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/scheme.xtm

Implementation

(define file-exists?
  (lambda (path)
    (let ((in-port (open-input-file path)))
      (if in-port
          (begin (close-input-port in-port)
                 #t)
          #f))))


Back to Index