Time Shim
This commit is contained in:
parent
0040f07097
commit
dde8e47add
1 changed files with 5 additions and 5 deletions
|
@ -38,11 +38,11 @@ asarStatsToFsStats = (stats) ->
|
||||||
uid: uid,
|
uid: uid,
|
||||||
gid: gid,
|
gid: gid,
|
||||||
rdev: 0,
|
rdev: 0,
|
||||||
atime: stats.atime,
|
atime: stats.atime || new Date(),
|
||||||
birthtime: stats.birthtime,
|
birthtime: stats.birthtime || new Date(),
|
||||||
mtime: stats.mtime,
|
mtime: stats.mtime || new Date(),
|
||||||
ctime: stats.ctime,
|
ctime: stats.ctime || new Date(),
|
||||||
size: stats.size
|
size: stats.size,
|
||||||
isFile: -> stats.isFile
|
isFile: -> stats.isFile
|
||||||
isDirectory: -> stats.isDirectory
|
isDirectory: -> stats.isDirectory
|
||||||
isSymbolicLink: -> stats.isLink
|
isSymbolicLink: -> stats.isLink
|
||||||
|
|
Loading…
Reference in a new issue