Add try catch for each unlink

This commit is contained in:
David Langley 2024-10-11 13:48:38 +01:00
parent e4c2890d1a
commit b015d2e536

View File

@ -62,7 +62,9 @@ async function getOrCreatePassphrase(key: string): Promise<string> {
const deleteContents = async (p: string): Promise<void> => {
for (const entry of await afs.readdir(p)) {
const curPath = path.join(p, entry);
try {
await afs.unlink(curPath);
} catch (e) {}
}
};