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")
|
dir-exists path
Tests if a directory exists.
|
>(dir-exists "mydir")
"mydir"
|
file-exists path
Tests if a file exists.
|
>(file-exists "mydir")
nil
|
mvfile path
Moves the specified file. New in arc3.
|
>(mvfile "/tmp/junk" "/tmp/newjunk")
nil
|
rmfile path
Removes the specified file.
|
>(rmfile "/tmp/newjunk")
Error: delete-file: cannot delete file
path: /tmp/newjunk
system error: No such file or directory; errno=2
|
rmfile path
Removes the specified file.
|
>(rmfile "oldfile")
nil
|
Copyright 2008 Ken Shirriff.