Procedure: file-exists? filename
Returns true iff the file named
filenameactually exists. This function is defined on arbitrarypathvalues: for URI values we open aURLConnectionand invokegetLastModified().
Procedure: file-directory? filename
Returns true iff the file named
filenameactually exists and is a directory. This function is defined on arbitrarypathvalues; the default implementation for non-file objects is to return#tiff the path string ends with the character ‘/’.
Procedure: file-readable? filename
Returns true iff the file named
filenameactually exists and can be read from.
Procedure: file-writable? filename
Returns true iff the file named
filenameactually exists and can be writen to. (Undefined if thefilenamedoes not exist, but the file can be created in the directory.)
Procedure: delete-file filename
Delete the file named
filename. On failure, throws an exception.
Procedure: rename-file oldname newname
Renames the file named
oldnametonewname.
Procedure: copy-file oldname newname-from path-to
Copy the file named
oldnametonewname. The return value is unspecified.
Procedure: create-directory dirname
Create a new directory named
dirname. Unspecified what happens on error (such as exiting file with the same name). (Currently returns#fon error, but may change to be more compatible with scsh.)
Return the name of the default directory for temporary files.
Procedure: make-temporary-file [format]
Return a file with a name that does not match any existing file. Use
format(which defaults to"kawa~d.tmp") to generate a unique filename in(system-tmpdir). The current implementation is not safe from race conditions; this will be fixed in a future release (using Java2 features).