Version: 1.5

Posted: 2004-03-19

Build Requirements: Xcode, ProjectBuilder or CodeWarrior

Runtime Requirements: Mac OS 9 and Mac OS X

View Source Code:

Download Sample (“FSCopyObject.zip”, 289.2K)
Download Sample (“FSCopyObject.dmg”, 368.4K)



Description

Contains source to demonstrate how to copy/delete files and folders with HFS+ APIs. It also demonstrates a technique to rename an object if an object of the same name exists in the destination.

This sample shows how to perform these operations in an MP-safe way.

Document Revision History

Date Notes
2004-03-19Fixed issue where a zero length object would be created when the current user did not have proper permissions to the source object or when there was not enough disk space to create the new object object
2003-07-17Copy engine for copying files and directories.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.