Specifications

Chapter 22272
Returns
true if the copy succeeds; false otherwise.
Example
The following code copies a file called myconfig.cfg to myconfig_backup.cfg.
var fileURL = "file:///c|/Config/myconfig.cfg";
var newURL ="file:///c|/Config/myconfig_backup.cfg";
DWfile.copy(fileURL, newURL);
DWfile.createFolder()
Availability
Dreamweaver 2
Description
Creates a folder (directory) at the specified location.
Arguments
folderURL
The argument is the location of the folder you want to create, which is expressed as a file:// URL.
Returns
true if the folder is successfully created; 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 is successful.
var folderURL = "file:///c|/tempFolder";
if (DWfile.createFolder(folderURL)){
alert("Created " + folderURL);
}else{
alert("Unable to create " + folderURL);
}
DWfile.exists()
Availability
Dreamweaver 2
Description
Tests for the existence of the specified file.
Arguments
fileURL
The argument is the requested file, which is expressed as a file:// URL.
Returns
true if the file exists; false otherwise.