File system

Library (rnrs files (6))

This library, in addition to the procedures described here, also exports the I/O condition types described in I/O condition types.

Function file-exists? filename

[R6RS] Filename must be a file name (see Port I/O). The file-exists? procedure returns #t if the named file exists at the time the procedure is called, #f otherwise.

Function delete-file filename

[R6RS] Filename must be a file name (see Port I/O). The delete-file procedure deletes the named file if it exists and can be deleted, and returns unspecified values. If the file does not exist or cannot be deleted, an exception with condition type &i/o-filename is raised.