DWfile.createFolder()

Availability

Dreamweaver 2.

Description

This function creates a folder at the specified location.

Arguments

folderURL 

Returns

A Boolean value: true if the folder is created successfully; false otherwise.

Example

The following code tries to create a folder called tempFolder at the top level of the C drive and displays an alert box that indicates whether the operation was successful:

var folderURL = "file:///c|/tempFolder";
if (DWfile.createFolder(folderURL)){
   alert("Created " + folderURL);
}else{
   alert("Unable to create " + folderURL);
}

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/dreamweaver/8/apiref/02_file5.htm