Ignore failures when deleting original QDN compressed file.

This commit is contained in:
CalDescent 2022-08-20 09:45:48 +01:00
parent 168d32a474
commit 4140546afb

View File

@ -477,7 +477,12 @@ public class ArbitraryDataReader {
// Delete original compressed file
if (FilesystemUtils.pathInsideDataOrTempPath(this.filePath)) {
if (Files.exists(this.filePath)) {
Files.delete(this.filePath);
try {
Files.delete(this.filePath);
} catch (IOException e) {
// Ignore failures as this isn't an essential step
LOGGER.info("Unable to delete file at path {}", this.filePath);
}
}
}