Description
This function copies the specified file to a new location.
Arguments
originalURL, copyURL
The
originalURL
copy.
The
argument, which is expressed as a file:// URL, is the location where you
copyURL
want to save the copied file.
Returns
A Boolean value:
true
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
This function creates a folder at the specified location.
Arguments
folderURL
The
argument, which is expressed as a file:// URL, is the location of the folder
folderURL
you want to create.
Returns
A Boolean value:
true
18
The File I/O API
argument, which is expressed as a file:// URL, is the file you want to
if the copy succeeds;
if the folder is created successfully;
otherwise.
false
false
otherwise.
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?