IFileSystemEntity's moveTo and copyTo Functions

The IFileSystemEntity class provides functions that copy or move a file or directory into a specified destination directory:

These functions are not meant to be customized.

Mover and Copier Classes

The File System Framework provides the following classes which you can subclass if you need customized copy or move behavior:

These classes provide the infrastructure for progress indicators, custom failure handling, and resolution of file-naming conflicts. You can instantiate and use IFileSystemMover and IFileSystemCopier directly, or subclass them in order to implement progress reporting, name-conflict resolution and failure handling. You can derive from IFileSystemCopier or IFileSystemMover to handle failures, resolve name conflicts, or report progress. You can also create an entirely new file operation by subclassing from IFileOperation. For example, you could create a subclass of IFileOperation that adds up the total size of all files in a directory tree, or searches through all of the files for a particular piece of data.



Introduction to the File System
Overview of File System Entities
File System Exceptions


Copying a File or Directory Using IFileSystemEntity::copyTo
Moving a File or Directory Using IFileSystemEntity::moveTo
Using the IFileSystemCopier and IFileSystemMover Classes Directly
Supporting Progress Indicators
Resolving Filename Conflicts
Handling Exceptions and Other Failures
Creating Your Own File System Operation