Browse Source

Simplified cleanup process. Individual deletions aren't needed as they are all inside the main temp directory.

v2.0-beta
CalDescent 3 years ago
parent
commit
00401080e0
  1. 15
      src/main/java/org/qortal/repository/Bootstrap.java

15
src/main/java/org/qortal/repository/Bootstrap.java

@ -293,18 +293,7 @@ public class Bootstrap {
// Cleanup // Cleanup
LOGGER.info("Cleaning up..."); LOGGER.info("Cleaning up...");
try { this.deleteAllTempDirectories();
if (inputPath != null) {
FileUtils.deleteDirectory(inputPath.toFile());
}
if (outputPath != null) {
FileUtils.deleteDirectory(outputPath.toFile());
}
this.deleteAllTempDirectories();
} catch (IOException e) {
LOGGER.info("Error during cleanup, but created bootstrap is still valid. {}", e);
}
} }
} }
@ -488,7 +477,7 @@ public class Bootstrap {
try { try {
FileUtils.deleteDirectory(path.toFile()); FileUtils.deleteDirectory(path.toFile());
} catch (IOException e) { } catch (IOException e) {
LOGGER.info("Unable to delete temp directory path: {}", path.toString()); LOGGER.info("Unable to delete temp directory path: {}", path.toString(), e);
} }
} }

Loading…
Cancel
Save