FSpExchangeFiles
FSSpec *source ; pointer to a source file FSSpec *dest ; pointer to a target file volume's catalog and, if the files are open, in the file control blocks.
source is a pointer to an FSSpec record specifying the source file. dest is a pointer to an FSSpec specifying the file that will receive the new data
noErr (0) No error
nsvErr (-35) Volume not found
ioErr (-36) I/O error
fnfErr (-43) File not found
fLckdErr (-45) File locked
volOffLinErr (-53) Volume is off line
extFSErr (-58) External file system
wrgVolTypErr (-123) Not an HFS volume
notAFileErr (-1302) Specified file is a directory
diffVolErr (-1303) Files on different volumes
Notes: The Tables in Updating Files under the section,
catalog entries and file control blocks.
if the file is being tracked through its file ID, the ID remains valid.
Typically, you use PBExchangeFiles after creating a new file during a
safe save (see Updating Files under the section,
the catalog entries that record the location of the data and the modification
dates. It swaps both the data forks and the resource forks.
the file. Exchanging the contents of two files requires essentially the same
access as opening both files for writing.
ex changed.