Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions PeerStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export class PeerStorage extends Peer {
await Deno.remove(path);
this.receiveLog(` ${path} deleted`);
} catch (ex) {
if (ex instanceof Deno.errors.NotFound) {
// Ignore NotFound error if the file was already deleted
return true;
}
this.receiveLog(` ${path} delete failed`, LOG_LEVEL_NOTICE);
Logger(ex, LOG_LEVEL_VERBOSE);
return false;
Expand Down
Loading