Merge pull request #674 from Subash/fs-stat

Fs stat fixes #672
This commit is contained in:
Cheng Zhao 2014-10-02 11:46:06 +08:00
commit ee5335ca6e

View file

@ -38,7 +38,11 @@ asarStatsToFsStats = (stats) ->
uid: uid, uid: uid,
gid: gid, gid: gid,
rdev: 0, rdev: 0,
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 isFile: -> stats.isFile
isDirectory: -> stats.isDirectory isDirectory: -> stats.isDirectory
isSymbolicLink: -> stats.isLink isSymbolicLink: -> stats.isLink