Prev Up Next

file-exists? checks if its argument string names a file. delete-file deletes its argument file. These procedures are not part of the Scheme standard, but are available in most implementations. These procedures work reliably only for files that are not directories. (Their behavior on directories is dialect-specific.)

file-or-directory-modify-seconds returns the time when its argument file or directory was last modified. Time is reckoned in seconds from 12 AM GMT, 1 January 1970. Eg,

(file-or-directory-modify-seconds "hello.scm")
=> 893189629

assuming that the file hello.scm was last messed with sometime on 21 April 1998.

Prev Up Next

Log in or register to write something here or to contact authors.