chickadee » chicken » file » rename-file

rename-file OLD NEW #!optional CLOBBERprocedure

Renames the file or directory with the pathname OLD to NEW. If the operation does not succeed, an error is signaled.

If CLOBBER is given and not #f, NEW will be replaced when it already exists, otherwise an error is signaled.