Skip to content
Permalink
Browse files

Sidestep archiver error in the event that no static files directory i…

…s specified
  • Loading branch information...
revetkn committed Oct 7, 2019
1 parent 97109f6 commit fe313b35c79093cebace06fcd96c387730377997
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/soklet/archive/Archiver.java
@@ -177,7 +177,7 @@ public void run() throws Exception {
// Hash static files and store off the manifest
Optional<Path> hashedUrlManifestFile = Optional.empty();

if (temporaryStaticFileRootDirectory.isPresent()) {
if (temporaryStaticFileRootDirectory.isPresent() && Files.exists(temporaryStaticFileRootDirectory.get())) {
logger.info("Performing static file hashing...");

// 1. Do the hashing

0 comments on commit fe313b3

Please sign in to comment.
You can’t perform that action at this time.