Mmhttp.cleartemp() – Adobe Dreamweaver API Reference CS5 User Manual
Page 20
15
DREAMWEAVER API REFERENCE
The HTTP API
Last updated 8/27/2013
Description
Deletes the _mmServerScripts folder—and all its files—under the root folder for the current site, which can be local or
remote. The _mmServerScripts folder is located in Configuration/Connections/Scripts/server-model/_mmDBScripts
folder.
Arguments
serverScriptsfolder
•
The serverScriptsfolder argument is a string that names a particular folder, relative to the Configuration folder on
the application server, from which you want to retrieve and clear server scripts.
Returns
An object that represents the reply from the server. The
data
property of this object is a string that contains the
contents of the deleted scripts. If an error occurs, Dreamweaver reports it in the
statusCode
property of the returned
object.
Example
The following code, in a menu command file inside the Configuration/Menus folder, removes all the files from the
_mmServerScripts folder when it is called from a menu:
MMHttp.clearTemp()
Description
This function deletes all the files in the Configuration/Temp folder, which is located in the Dreamweaver application
folder.
Arguments
None.
Returns
Nothing.
Example
The following code, when saved in a file within the Configuration/Shutdown folder, removes all the files from the
Configuration/Temp folder when the user quits Dreamweaver: