no power loss
This commit is contained in:
parent
d56084e4bc
commit
2fcdbfd27d
1 changed files with 1374 additions and 3676 deletions
|
|
@ -216,13 +216,6 @@ export class MemoryDisk implements FileSystemOperations {
|
|||
});
|
||||
}
|
||||
|
||||
public async flushPaths(paths: readonly string[]): Promise<void> {
|
||||
const affected = new Set(paths);
|
||||
for (const path of paths)
|
||||
for (let p = parent(path); p; p = parent(p)) affected.add(p);
|
||||
await this.change(`flush:${paths.join(",")}`, [...affected], () => {});
|
||||
}
|
||||
|
||||
public async delete(path: string): Promise<void> {
|
||||
this.check(path);
|
||||
assert(path !== "", "Cannot remove vault root");
|
||||
|
|
|
|||
Loading…
Reference in a new issue