Skip to content

Commit e8e0f9d

Browse files
cmhulbertbogovicj
authored andcommitted
feat: don't throw on NoSuchFileException for delete
Signed-off-by: Caleb Hulbert <cmhulbert@gmail.com>
1 parent ead5545 commit e8e0f9d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/org/janelia/saalfeldlab/n5/FileSystemKeyValueAccess.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ public void delete(final String normalPath) throws N5IOException {
351351
}
352352
}
353353
}
354+
} catch (NoSuchFileException ignore) {
355+
/* It doesn't exist; that's sufficient for us to not complain on a `delete` call */
354356
} catch (IOException | UncheckedIOException e) {
355357
throw new N5IOException("Failed to delete file at " + normalPath, e);
356358
}

0 commit comments

Comments
 (0)