()
| 234 | private _stat: any = null; |
| 235 | |
| 236 | get stat() { |
| 237 | if (this._stat) { |
| 238 | return this._stat; |
| 239 | } |
| 240 | const file = mockFileSystem.getFile(this.path); |
| 241 | return file?.stat || { |
| 242 | ctime: Date.now(), |
| 243 | mtime: Date.now(), |
| 244 | size: 0, |
| 245 | }; |
| 246 | } |
| 247 | |
| 248 | set stat(value: any) { |
| 249 | this._stat = value; |