The File I/O API
41
DWfile.setAttributes()
Availability
Dreamweaver MX.
Description
This function sets the system-level attributes of a particular file.
Arguments
fileURL
,
strAttrs
•
The
fileURL
argument, which is expressed as a file:// URL, identifies the file for which you
are setting the attributes.
•
The
strAttrs
argument specifies the system-level attributes for the file that is identified by the
fileURL
argument. The following table describes valid attribute values and their meaning:
Acceptable values for the
strAttrs
string are
R
,
W
,
H
,
V
,
RH
,
RV
,
WH
, or
WV
.
You should not use
R
and
W
together because they are mutually exclusive. If you combine them,
R
becomes meaningless, and the file is set as writable (
W
). You should not use
H
and
V
together
because they are also mutually exclusive. If you combine them,
H
becomes meaningless, and the
file is set as visible (
V
).
If you specify
H
or
V
without specifying an
R
or
W
read/write attribute, the existing read/write
attribute for the file is not changed. Likewise, if you specify
R
or
W
, without specifying an
H
or
V
visibility attribute, the existing visibility attribute for the file is not changed.
Returns
Nothing.
Attribute Value
Description
R
Read only
W
Writable (overrides
R
)
H
Hidden
V
Visible (overrides
H
)
000_DW_API_Print.book Page 41 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...