mFile.copyFolder()

Availability

Windows: Flash 8 or 9 AS2.0 swf + mProjector 3.1.0

Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector 3.1.0;

Usage

mFile.copyFolder(sourceFolder:String, destinationFolder:String) : Boolean

Parameters

sourceFolder - Name (including the full path) of the folder to copy.

destinationFolder - Name (including the full path) of the destination folder.

Returns

A boolean.; ;

Description

Method; Makes a copy of the specified folder.

Example

The following example copies a folder named "images" from the application's directory to the desktop.

var success:Boolean;
var workingDirPath:String;
var desktopPath:String;
var pathDelimiter = mSystem.getPathDelimiter();

sourcePath = mSystem.getSpecialFolder("MYAPP") + pathDelimiter + "images";
desktopPath = mSystem.getSpecialFolder("DESKTOP") + pathDelimiter + "images";
success = mFile.copyFolder(workingDirPath, desktopPath);