copy-file

$Revision: 5.0.2.3 $

Function

Package: SYSTEM

Arguments: (from-pathname to-pathname &key link-ok preserve-symbolic-links element-type preserve-time)

Copies from-pathname to to-pathname. If link-ok is t, then copy by creating a symbolic link. If link-ok is :hard, then copy by creating a hard link. If link-ok is nil, just copy the file.

If preserve-symbolic-links is non-nil, copy a symbolic link by making a symbolic link, otherwise copy normally--link-ok is ignored if fro-pathname is a symbolic link.

element-type is given to open when from-pathname and to-pathname are opened and created, respectively.

If preserve-time is non-nil, then set the time on to-pathname be the same as from-pathname.

Both from-pathname and to-pathname can be streams, in which case all the keyword arguments are ignored. This allows for copying bytes from one stream to another.

See 3.0 Environment functions in os_interface.htm for information on file and directory information and manipulation functions in Allegro CL.

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.