Save the ctime and mtime information in entry.
This commit is contained in:
+3
-1
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user