JSBool MM_GetConfigFileAttributes()
Availability
Dreamweaver MX.
Description
This function finds the file and returns the attributes of the file. You can set any of the arguments
except
fileURL
Arguments
char *fileURL, unsigned long *attrs, unsigned long *filesize,
unsigned long *modtime, unsigned long *createtime
•
The
char *fileURL
the attributes. You must provide this argument as a file:// URL. If
the Dreamweaver Configuration folder, the
resolves the path before opening the file.
•
The
unsigned long *attrs
attribute bits (see
•
The
unsigned long *filesize
returns the file size in bytes.
•
The
unsigned long *modtime
returns the time that the file was last modified. The time is given as the operating-system time
value. For more information about the operating-system time value, see
DWfile.getModificationDate()
•
The
unsigned long *createtime
function returns the time that the file was created. The time is given as the operating-system
time value. For more information on the operating system time value, see
DWfile.getCreationDate()
Returns
A Boolean value:
file does not exist or an error occurs while getting the attributes.
Example
char dwConfig = "file:///c|/
Configuration/Extensions.txt";
unsigned long attrs;
unsigned long filesize;
unsigned long modtime;
unsigned long createtime;
MM_GetConfigAttributes(dwConfig, &attrs, &filesize, &modtime, &createtime);
368
Chapter 21: C-Level Extensibility
to
if you do not need the value.
null
argument is a pointer to a string that names the file for which you want
argument is the address of an integer that contains the returned
JSBool MM_SetConfigFileAttributes()
argument is the address of an integer in which the function
argument is the address of an integer in which the function
in the Dreamweaver API Reference.
in the Dreamweaver API Reference.
indicates success;
JS_TRUE
P
rogram Files/Macromedia/Dreamweaver/
MM_GetConfigFileAttributes()
for available attributes).
argument is the address of an integer in which the
indicates failure. Returns
JS_FALSE
specifies a path in
fileURL
function
JS_FALSE
if the
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers