Jsbool Mm_Configfileexists() - MACROMEDIA DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER Manual

Extending dreamweaver
Hide thumbs Also See for DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER:
Table of Contents

Advertisement

Arguments
char *fileURL, char *constraints
The
char *fileUrl
want a list of the contents. The string must have the format of a file:// URL. The function
accepts valid wildcard characters of asterisks (*) and question marks (?) in the file:// URL
string. Use asterisks (*) to represent one or more unspecified characters, and question marks (?)
to represent a single unspecified character.
The
char *contstraints
you specify
null
Returns
is an array that contains the list of files or folders in either the user Configuration folder
JSObject
or the Dreamweaver Configuration folder, subject to filtering by the mm_deleted_files.xml file.
Examples
JSObject *jsobj_array;
jsobj_array = MM_GetConfigFolderList("file:///¬
c|/P
rogram Files/Macromedia/Dreamweaver/Configuration", "directories" );

JSBool MM_ConfigFileExists()

Availability
Dreamweaver MX.
Description
This function checks whether the specified file exists. If it is a file in a configuration folder, the
function searches for the file in the user Configuration folder or the Dreamweaver Configuration
folder. The function also checks whether the filename is listed in the mm_deleted_files.xml file. If
the name is listed in this file, the function returns a
Arguments
char *fileUrl
The
char *fileUrl
provided in the format of a file:// URL.
Returns
A Boolean value:
Example
char *dwConfig = "file:///c|/
Configuration/Extensions.txt";
int fileno = 0;
if(MM_ConfigFileExists(dwConfig))
{
fileno = MM_OpenConfigFile(dwConfig, "read");
}
366
Chapter 21: C-Level Extensibility
argument is a pointer to a string that names the folder for which you
argument can be "
, the
MM_GetConfigFolderList()
argument is a pointer to a string that names the desired file, which is
indicates success;
JS_TRUE
P
rogram Files/Macromedia/Dreamweaver/
or "
files"
directories
function returns files and folders.
value.
false
indicates failure.
JS_FALSE
" or a
value. If
null

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents