Dwfile.getcreationdateobj(), Dwfile.getmodificationdateobj(), Dwfile.getsize() – Adobe Dreamweaver API Reference CS5 User Manual
Page 14

9
DREAMWEAVER API REFERENCE
The file I/O API
Last updated 8/27/2013
var file1 = "file:///c|/temp/file1.txt";
var time1 = DWfile.getCreationDate(file1);
var time2 = DWfile.getModificationDate(file1);
if (time1 == time2){
alert("file1 has not been modified since it was created");
}else if (time1 < time2){
alert("file1 was last modified on " + time2);
}
DWfile.getCreationDateObj()
Availability
Dreamweaver MX.
Description
This function gets the JavaScript object that represents the time when the file was created.
Arguments
fileURL
•
The fileURL argument, which is expressed as a file:// URL, is the file for which you are checking the creation time.
Returns
A JavaScript
Date
object that represents the date and time when the specified file was created.
DWfile.getModificationDateObj()
Availability
Dreamweaver MX.
Description
This function gets the JavaScript
Date
object that represents the time when the file was last modified.
Arguments
fileURL
•
The fileURL argument, which is expressed as a file:// URL, is the file for which you are checking the time of the most
recent modification.
Returns
A JavaScript
Date
object that represents the date and time when the specified file was last modified.
DWfile.getSize()
Availability
Dreamweaver MX.