$Revision: 5.0.2.3 $
Package: EXCL
Bound to a function taking a pathname as an argument and returning a new pathname. Normally the new pathname will differ only in the filename and type slots, with both being some reasonable modification of the original filename and type. This function is run when the value of the if-exists keyword argument to open is rename or rename-and-delete (and the direction argument is :io or :output, so the if-exists argument is not ignored). The default function prepends the value of excl:*open-rename-prefix* to the file name and appends the value of excl:*open-rename-suffix* as the new file type (the old type, if present, becomes part of the file name). Thus, using the initial values for those variables, a file named foo.bar will be renamed foo.bar.bak: the file name is foo.bar and the type is bak. A file named foo will be renamed foo.bak.
Note this behavior is changed from Allegro CL 4.3 on Unix platforms. In the older versions, -old was appended to the type. The change allows better integration with Windows.
See implementation.htm for information on the implementation of cl:open.
The general documentation description is in introduction.htm. The index is in index.htm.
Copyright (C) 1998-1999, Franz Inc., Berkeley, CA. All Rights Reserved.