MACROMEDIA DREAMWEAVER 8-DREAMWEAVER API Specifikace Strana 272

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 692
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 271
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.
Zobrazit stránku 271
1 2 ... 267 268 269 270 271 272 273 274 275 276 277 ... 691 692

Komentáře k této Příručce

Žádné komentáře