beautypg.com

Site.displaysyncinfoforfile() – Adobe Dreamweaver API Reference CS5 User Manual

Page 231

background image

226

DREAMWEAVER API REFERENCE

Site

Last updated 8/27/2013

Description
Puts a specified file (or files) in the testing server’s bin folder. If the current site does not have any settings defined for
deploying supporting files, this function starts the Deploy Supporting Files To Testing Server dialog box.

Arguments
filesToDeploy

The filesToDeploy argument is an array of filenames that Dreamweaver will deploy.

Returns
A Boolean value:

true

if the files deploy successfully;

false

otherwise.

Example
This example deploys the files image1.jpg and script1.js to the testing server’s bin folder:

site.deployFilesToTestingServerBin("image1.jpg", "script1.js");

site.displaySyncInfoForFile()

Availability
Dreamweaver CS3.

Description
Presents a dialog box that contains the local, remote, and testing times of the file corresponding to the parameter
passed. This information is stored in the synchronization dwsync.xml file.

The dialog box displays four times:

The Local Remote Time, which indicates for the local file, the time stamp of the last put or get command to the
remote server.

The Remote Time, which indicates for the file on the remote server, the time stamp of the last get or put command
to the remote server.

The Local Testing Time, which indicates for the local file, the time stamp of the last get or put command to the
testing server.

The Testing Time, which indicates for the file on the testing server, the time stamp of the last get or put command
to the testing server.

If the dwsync.xml file does not contain any information for the file, a message appears indicating that no information
is available. If the time is set in the XML file, it is displayed in the date/time format for the locale (such as: 6/24/05
2:43pm). If the time isn't set in the entry for the file, a dash (-) is displayed.

This function works on the selected file in the Local File View, if '

site

' is passed, or the file corresponding to the local

URL, if a URL is passed.

Arguments
path, '

site

'

path is the URL to a local file.

'

site

' indicates that the function uses the file selected in the Files panel.