Welcome to the CHICKEN Scheme pasting service

delete-directory.scm added by gahr on Mon Jun 24 16:11:49 2024

(import (chicken file)
        (chicken errno)
        (chicken condition)
        (chicken process-context)
        )

(handle-exceptions
  exn
  (let ((errno (get-condition-property exn 'exn 'errno #f)))
    (case errno
      ((errno/noent) (print "Ok, fine: " errno))
      (else (print "Not fine: <" errno "> vs. <"  errno/noent ">"))))
  (delete-directory (car (command-line-arguments))))


$ chicken-csi -s delete-directory.scm /foo/bar
Not fine: <2> vs. <2>

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which procedure can be used to check whether its argument is a procedure?
Visually impaired? Let me spell it for you (wav file) download WAV