(p: string, flag: FileFlag)
| 367 | } |
| 368 | |
| 369 | public openFileSync(p: string, flag: FileFlag): File { |
| 370 | const tx = this.store.beginTransaction('readonly'), |
| 371 | node = this.findINode(tx, p), |
| 372 | data = tx.get(node.id); |
| 373 | if (data === undefined) { |
| 374 | throw ApiError.ENOENT(p); |
| 375 | } |
| 376 | return new SyncKeyValueFile(this, p, flag, node.toStats(), data); |
| 377 | } |
| 378 | |
| 379 | public unlinkSync(p: string): void { |
| 380 | this.removeEntry(p, false); |
nothing calls this directly
no test coverage detected