| Allegro CL version 7.0 Unrevised from 6.2 to 7.0. Significant update since 7.0 release. | |||||||||
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 function that is the initial value of this variable prepends the
value of *open-rename-prefix* to the file name and
appends the value of *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 the three 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.
The renamed file will be written to the directory that is the result
of merging the pathname of the opened file with the current directory
(as returned by excl:current-directory) rather than merging it
with *default-pathname-defaults*. When the
current directory is different from the directory component of *default-pathname-defaults*, the
renamed file may be located in a different directory than the file
which is opened.
See Extensions to cl:make-package, cl:disassemble, cl:open in implementation.htm for information on the implementation of open.
Copyright (c) 1998-2006, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 7.0. This page was not revised from the 6.2 page.
Created 2004.8.21.
| Allegro CL version 7.0 Unrevised from 6.2 to 7.0. Significant update since 7.0 release. | |||||||||