Example
char *dwConfig = "file:///c|/
Configuration/Extensions.txt";
int = fileno;
if(MM_ConfigFileExists(dwConfig))
{
fileno = MM_OpenConfigFile(dwConfig, "read");
}
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
want the attributes. You must provide this argument as a file:// URL. If
a path in the Dreamweaver Configuration folder, the
function resolves the path before opening the file.
The
unsigned long *attrs
returned attribute bits (see
attributes).
The
unsigned long *filesize
function returns the file size in bytes.
The
unsigned long *modtime
function 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()
P
rogram Files/Macromedia/Dreamweaver/
to
if you do not need the value.
null
argument is a pointer to a string that names the file for which you
argument is the address of an integer that contains the
JSBool MM_SetConfigFileAttributes()
argument is the address of an integer in which the
argument is the address of an integer in which the
argument is the address of an integer in which the
in the Dreamweaver API Reference.
MM_GetConfigFileAttributes()
in the Dreamweaver API Reference.
File Access and Multiuser Configuration API
specifies
fileURL
for available
475
Need help?
Do you have a question about the DREAMWEAVER 8-EXTENDING DREAMWEAVER and is the answer not in the manual?