Time Shim

This commit is contained in:
Subash Pathak 2014-10-01 22:24:51 +05:45
parent 0040f07097
commit dde8e47add

View file

@ -38,11 +38,11 @@ asarStatsToFsStats = (stats) ->
uid: uid,
gid: gid,
rdev: 0,
atime: stats.atime,
birthtime: stats.birthtime,
mtime: stats.mtime,
ctime: stats.ctime,
size: stats.size
atime: stats.atime || new Date(),
birthtime: stats.birthtime || new Date(),
mtime: stats.mtime || new Date(),
ctime: stats.ctime || new Date(),
size: stats.size,
isFile: -> stats.isFile
isDirectory: -> stats.isDirectory
isSymbolicLink: -> stats.isLink