This commit is contained in:
Andras Schmelczer 2025-11-23 20:27:16 +00:00
parent 9139b4fa4d
commit ca42f614e0
19 changed files with 301 additions and 226 deletions

View file

@ -105,6 +105,10 @@ export class SafeFileSystemOperations implements FileSystemOperations {
);
}
public reset(): void {
this.locks.reset();
}
/**
* Decorate an operation to ensure that the file exists before running it.
* If the operation fails, it will check if the file still exists and throw
@ -138,8 +142,4 @@ export class SafeFileSystemOperations implements FileSystemOperations {
}
}
}
public reset(): void {
this.locks.reset();
}
}