File system

This chapter describes the (r6rs files)library for operations on the file system. This library, in addition to the procedures described here, also exports the I/O condition types described in section 7.1.

procedure:  (file-exists? filename) 

Filename must be a filename (see section 7.2.1). The file-exists? procedure returns #t if the named file exists at the time the procedure is called, #f otherwise.

procedure:  (delete-file filename) 

Filename must be a filename (see section 7.2.1). The delete-file procedure deletes the named file if it exists and if it is possible, and returns the unspecified value. If the file does not exist or cannot be deleted, an exception with condition type &i/o-filename is raised.