Welcome to the CHICKEN Scheme pasting service

with-ignored-noent added by mario-goulart on Fri Jan 5 14:40:15 2024

(define (with-ignored-noent thunk)
  (handle-exceptions exn
    (when (and ((condition-predicate 'i/o) exn)
               ((condition-predicate 'file) exn)
               (not (= (errno) errno/noent)))
      (signal exn))
    (thunk)))


(with-ignored-noent
 (lambda ()
   (delete-file "/this/file/does/not/exist")))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which egg provides `string-pad-right'?
Visually impaired? Let me spell it for you (wav file) download WAV