mFile.deleteFolder()

Availability

Windows: Flash 8 or 9 AS2.0 SWF + mProjector 3.0; Windows 98/ME/NT Support: Flash 7 SWF + mProjector 2.0;

Macintosh: Flash 8 or 9 AS2.0 SWF + mProjector 2.0; replacing mProjector 1.0 async

Usage

mFile.deleteFolder(folderName:String) : Boolean

Parameters

folderName - Name (including the path) of the folder to delete. Platform Implementation Differences: On Windows the file name must include a fully qualified path. On the Mac if no path is specified, the working directory is used.

Returns

A boolean.; ;

Description

Method; Deletes the specified folder.

Example

The following example deletes a folder.

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

workingDirPath = mSystem.getSpecialFolder("WORKING") + pathDelimiter;
success = mFile.deleteFolder(workingDirPath+"subFolder");

See Also

mFile.createFolder()

Code Examples

mProjector Class Basics -- mFile