Save the ctime and mtime information in entry.

This commit is contained in:
Girish Ramakrishnan
2013-06-29 17:58:22 -07:00
parent 2a9679fe59
commit 2de0f331e2
+3 -1
View File
@@ -61,7 +61,9 @@ DirIndex.prototype.addEntry = function (fileEntry, callback) {
that.entries.push({
filename: fileEntry.path,
size: fileEntry.stat.size,
checksum: sha1
checksum: sha1,
ctime: fileEntry.stat.ctime,
mtime: fileEntry.stat.mtime
});
callback(null);
});