From 5edfb7443295e11bf8708c0053e0bf8a8a2fc84d Mon Sep 17 00:00:00 2001 From: Sergii Pylypenko Date: Fri, 24 Feb 2017 17:01:23 +0200 Subject: [PATCH] SDL: re-create download outdir if SD card is replaced --- project/java/DataDownloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/java/DataDownloader.java b/project/java/DataDownloader.java index c0d276ae8..2c4bad0e4 100644 --- a/project/java/DataDownloader.java +++ b/project/java/DataDownloader.java @@ -287,7 +287,7 @@ class DataDownloader extends Thread Log.i("SDL", "Downloading data to: '" + outFilesDir + "'"); try { File outDir = new File( outFilesDir ); - if( !(outDir.exists() && outDir.isDirectory()) ) + if( !outDir.exists() ) outDir.mkdirs(); OutputStream out = new FileOutputStream( getOutFilePath(".nomedia") ); out.flush();