* Drop all entries for a deleted file or directory subtree so a future file * at the same path never resurrects stale pins or stats.
(logicalKey: string)
| 230 | * at the same path never resurrects stale pins or stats. |
| 231 | */ |
| 232 | async removeKeys(logicalKey: string): Promise<void> { |
| 233 | await this.mutate((entries) => { |
| 234 | for (const key of Object.keys(entries)) { |
| 235 | if (keyInSubtree(key, logicalKey)) delete entries[key]; |
| 236 | } |
| 237 | }); |
| 238 | } |
| 239 | } |
no test coverage detected