|
|
@ -127,6 +127,11 @@ public class ArbitraryDataRenderer { |
|
|
|
String filename = this.getFilename(unzippedPath, inPath); |
|
|
|
String filename = this.getFilename(unzippedPath, inPath); |
|
|
|
Path filePath = Paths.get(unzippedPath, filename); |
|
|
|
Path filePath = Paths.get(unzippedPath, filename); |
|
|
|
boolean usingCustomRouting = false; |
|
|
|
boolean usingCustomRouting = false; |
|
|
|
|
|
|
|
if (Files.isDirectory(filePath) && (!inPath.endsWith("/"))) { |
|
|
|
|
|
|
|
inPath = inPath + "/"; |
|
|
|
|
|
|
|
filename = this.getFilename(unzippedPath, inPath); |
|
|
|
|
|
|
|
filePath = Paths.get(unzippedPath, filename); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// If the file doesn't exist, we may need to route the request elsewhere, or cleanup
|
|
|
|
// If the file doesn't exist, we may need to route the request elsewhere, or cleanup
|
|
|
|
if (!Files.exists(filePath)) { |
|
|
|
if (!Files.exists(filePath)) { |
|
|
|