Arc: File system operations

Arc has operations to manipulate files and directories. These operations do not all work on non-Unix systems. The I/O operations are closely related to MzScheme's I/O operations.

See I/O in Arc for information on reading and writing files.

ensure-dir path
Creates the specified directory, if it doesn't exist.
>(ensure-dir "newdir")
nil
dir path
Returns the directory contents as a list.
>(dir "mydir")
("foo" "bar")
dir-exists path
Tests if a directory exists.
>(dir-exists "mydir")
"mydir"
file-exists path
Tests if a file exists.
>(file-exists "mydir")
nil
rmfile path
Removes the specified file.
>(rmfile "oldfile")
nil

Copyright 2008 Ken Shirriff.