mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-25 10:37:51 +01:00
Fix React export when static directory doesn't exist yet
This commit is contained in:
parent
8fadcc3afb
commit
d4798f1303
@ -117,6 +117,7 @@ public class ReactExporter extends FileExporter {
|
||||
private void deleteOldStaticBundleFiles(Path toDirectory) throws IOException {
|
||||
Set<Path> filesToDelete;
|
||||
Path staticDirectory = toDirectory.resolve("static");
|
||||
if (!Files.isDirectory(staticDirectory)) return;
|
||||
try (Stream<Path> exportedFiles = Files.walk(staticDirectory)) {
|
||||
filesToDelete = exportedFiles
|
||||
.filter(path -> {
|
||||
|
Loading…
Reference in New Issue
Block a user