From 26ad423e24d350eb312a804a18a7fd38406d7f53 Mon Sep 17 00:00:00 2001 From: Arndt Brenschede Date: Sat, 15 Feb 2020 18:28:19 +0100 Subject: [PATCH] create readme subdirectories when installing app --- .../src/main/java/btools/routingapp/BRouterView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/brouter-routing-app/src/main/java/btools/routingapp/BRouterView.java b/brouter-routing-app/src/main/java/btools/routingapp/BRouterView.java index 6d0ce96..9b4d5b6 100644 --- a/brouter-routing-app/src/main/java/btools/routingapp/BRouterView.java +++ b/brouter-routing-app/src/main/java/btools/routingapp/BRouterView.java @@ -606,7 +606,9 @@ public class BRouterView extends View if ( ze == null ) break; String name = ze.getName(); - FileOutputStream fos = new FileOutputStream( new File( f, name ) ); + File outfile = new File( f, name ); + outfile.getParentFile().mkdirs(); + FileOutputStream fos = new FileOutputStream( outfile ); for ( ;; ) {