Description
This function gets the attributes of the specified file or folder.
Arguments
fileURL
The
argument, which is expressed as a file:// URL, is the file or folder for which
fileURL
you want to get attributes.
Returns
A string that represents the attributes of the specified file or folder. If the file or folder does
not exist, this function returns a
the attributes:
is read only.
R
is folder.
D
is hidden.
H
is system file or folder.
S
Example
The following code gets the attributes of the mydata.txt file and displays an alert box if the file
is read only:
var fileURL = "file:///c|/temp/mydata.txt";
var str = DWfile.getAttributes(fileURL);
if (str && (str.indexOf("R") != -1)){
alert(fileURL + " is read only!");
}
DWfile.getModificationDate()
Availability
Dreamweaver 2.
Description
This function gets the time when the file was last modified.
Arguments
fileURL
The
argument, which is expressed as a file:// URL, is the file for which you are
fileURL
checking the last modified time.
20
The File I/O API
value. The following characters in the string represent
null
Need help?
Do you have a question about the DREAMWEAVER 8-DREAMWEAVER API and is the answer not in the manual?