Skip to content
Snippets Groups Projects
Commit 83bab7fa authored by Raymond Toy's avatar Raymond Toy
Browse files

Document the return values for RENAME-FILE.

parent 180783f6
No related branches found
No related tags found
No related merge requests found
......@@ -938,8 +938,13 @@
;;; Rename-File -- Public
;;;
(defun rename-file (file new-name)
"Rename File to have the specified New-Name. If file is a stream open to a
file, then the associated file is renamed."
"Rename File to have the specified New-Name. If file is a stream
open to a file, then the associated file is renamed.
Three values are returned if successful: the defaulted new name
composed of New-Name with missing components filled in from File;
the truename of File before it was renamed; the new truename of the
File after it was renamed."
(let* ((original (truename file))
(original-namestring (unix-namestring original t))
(new-name (merge-pathnames new-name file))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment