Read Me About MPFileCopy

1.0b1

This sample demonstrates a) how to copy a folder and its contents using the HFS Plus APIs, and b) how to call the File Manager from MP tasks on Mac OS 9.0 and above. The copy engine preserves long Unicode names, larger than 2 GB forks, and forks beyond the resource and data forks (if present).

This sample requires Mac OS 9.0 or above.

Read the Caveats section for some important caveats.

Packing List

The sample contains the following items:

Using the Sample

To use the sample, simply launch it and first choose a source item and then choose a destination folder. The program will then copy the source items to the destination folder, displaying some console window progress as it goes.

Building the Sample

The sample was built using the standard MoreIsBetter build environment (CodeWarrior Pro 2 compiler) with Universal Interfaces 3.3. You should be able to build the project in CodeWarrior Pro 4 without difficulty as long as you have a late version of Universal Interfaces 3.3 or later. To build the project, select the "C-PPC" target, and choose Make from the Project menu. This will build the MPFileCopy-PPC application.

How it Works

Copying a folder is a surprisingly difficult thing to do, although the HFS Plus APIs make it somewhat easier. I wrestled with the following key issues while working on this sample.

Caveats

This sample still has a number of problems. I shipped with these problems because I thought it was more important to get the sample out the door than to make it perfect. I will attempt to address these in a future release.

Credits and Version History

If you find any problems with this sample, mail <DTS@apple.com> with "Attn: Quinn" as the first line of your mail and I'll try to fix them up.

1.0d1 (Oct 1999) was an Apple internal release for reviewers.

1.0d2 (Oct 1999) was another Apple internal release for reviewers.

1.0b1 (Nov 1999) was the first shipping version.

Share and Enjoy.

Quinn "The Eskimo!"
Apple Developer Technical Support
Networking, Communications, Hardware

15 Nov 1999