FSpCatMove
FSpCatMove Change a file's location
#include <Files.h> File Manager
OSErr FSpCatMove ( source, dest) ;
FSSpec * source; is a pointer to a file's name and location before the
move
FSSpec *dest; points to the file's name and location after the move
returns Error Code; 0=no error
FSpCatMove function changes the location of a file or directory.
source is a pointer to an FSSpec record specifying the file to be moved.
dest is a pointer to an FSSpec record specifying the file's new location.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
badMovErr (-122) Can't move into offspring
bdNamErr (-37) Bad file name or attempt to move into file
dupFNErr (-48) Duplicate filename (destination file/dir already
exists)
fnfErr (-43) Source file not found
ioErr (-36) I/O error
nsvErr (-35) No such volume
paramErr (-50) Error in user parameter list
vLckdErr (-46) Volume is locked
wPrErr (-44) Diskette is write-protected

Notes: The FSpCatMove is the high-level, FSSpec version of the PBCatMove
function. It moves the file or directory specified by the source parameter to
the destination specified by the dest parameter. The source and dest
parameters specify the name and location of the file or directory before and
after the move.