From 2de0f331e2b44a3be30c15d51f92879eec14202a Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Sat, 29 Jun 2013 17:58:22 -0700 Subject: [PATCH] Save the ctime and mtime information in entry. --- lib/dirindex.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/dirindex.js b/lib/dirindex.js index 4de2a3f05..ed3b0eb03 100644 --- a/lib/dirindex.js +++ b/lib/dirindex.js @@ -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); });