Specifications
Chapter 21262
For example, if you used the trash can in the Snippets panel to delete a Snippets folder called 
javascript and a file called onepixelborder.csn, Dreamweaver MX writes a file in the user 
configuration folder called 
mm_deleted_files.xml, which looks like the following example:
<?xml version = "1.0" encoding="utf-8" ?>
<deleteditems>
<item name="snippets/javascript/" />
<item name="snippets/html/onepixelborder.csn" />
</deleteditems>
As Dreamweaver MX populates the Snippets panel, it reads all the files in the user’s 
Configuration/Snippets folder and all the files in the Dreamweaver MX Configuration/Snippets 
folder, except the Configuration/Snippets/javascript folder and the Configuration/Snippets/html/
onepixelborder.csn file, and adds the resulting list of files to the Snippets panel list. 
If a C-level extension calls the 
MM_ConfigFileExists() function for the URL "file:///
c|Program Files/macromedia/Dreamweaver MX/Configuration/Snippets/javascript/
onepixelborder.csn"
, it returns false. Likewise, if a JavaScript extension tries to call 
dw.getDocumentDom("file:///c|Program Files/Macromedia/Dreamweaver MX/
Configuration/Snippets/javascript/onepixelborder.csn")
, it returns Null. 
You can modify the mm_deleted_files.xml file to prevent Dreamweaver from showing files in the 
user interface, such as objects, canned content in the new dialog, and so on. You can call 
MM_DeleteConfigfile() to add file pathnames to mm_deleted_files.xml. 
JS_Object MM_GetConfigFolderList()
Availability
Dreamweaver MX
Description
Gets a list of files, folders, or both for the specified folder. If you specify a configuration folder, the 
function gets a list of the folders that exists in both the user Configuration folder and the 
Dreamweaver Configuration folder, subject to filtering by mm_deleted_files.xml. 
Arguments
char *fileURL, char *constraints
• char *fileUrl is a pointer to a string that names the folder for which you want a list of the 
contents. The string must have the format of a file URL (file://). 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.
• char *contstraints can be files or directories or NULL. If you specify NULL, 
MM_GetConfigFolderList() returns both files and directories.
Returns
JSObject is an array that contains the list of files or folders in either the user Configuration folder 
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|/Program Files/Macromedia/Dreamweaver MX/Configuration", "directories" );










