* Delete all contents stored in the file system.
(cb: BFSOneArgCallback)
| 740 | * Delete all contents stored in the file system. |
| 741 | */ |
| 742 | public empty(cb: BFSOneArgCallback): void { |
| 743 | this.store.clear((e?) => { |
| 744 | if (noError(e, cb)) { |
| 745 | // INVARIANT: Root always exists. |
| 746 | this.makeRootDirectory(cb); |
| 747 | } |
| 748 | }); |
| 749 | } |
| 750 | |
| 751 | public rename(oldPath: string, newPath: string, cb: BFSOneArgCallback): void { |
| 752 | const tx = this.store.beginTransaction('readwrite'); |
nothing calls this directly
no test coverage detected