(p: string, flag: FileFlag, mode: number)
| 359 | } |
| 360 | |
| 361 | public createFileSync(p: string, flag: FileFlag, mode: number): File { |
| 362 | const tx = this.store.beginTransaction('readwrite'), |
| 363 | data = emptyBuffer(), |
| 364 | newFile = this.commitNewFile(tx, p, FileType.FILE, mode, data); |
| 365 | // Open the file. |
| 366 | return new SyncKeyValueFile(this, p, flag, newFile.toStats(), data); |
| 367 | } |
| 368 | |
| 369 | public openFileSync(p: string, flag: FileFlag): File { |
| 370 | const tx = this.store.beginTransaction('readonly'), |
nothing calls this directly
no test coverage detected