(path: string)
| 340 | } |
| 341 | |
| 342 | get(path: string): FileEntry | null { |
| 343 | const p = this._normalizePath(path); |
| 344 | if (this._recordSync.isDirectory(p)) { |
| 345 | throw new PathIsDirectoryException(p); |
| 346 | } |
| 347 | if (!this._recordSync.exists(p)) { |
| 348 | return null; |
| 349 | } |
| 350 | |
| 351 | return new LazyFileEntry(p, () => Buffer.from(this._recordSync.read(p))); |
| 352 | } |
| 353 | |
| 354 | getDir(path: string): DirEntry { |
| 355 | const p = this._normalizePath(path); |
no test coverage detected